Searched refs:flctx (Results 1 – 9 of 9) sorted by relevance
/linux-6.12.1/fs/lockd/ |
D | svcsubs.c | 213 struct file_lock_context *flctx = locks_inode_context(inode); in nlm_traverse_locks() local 216 if (!flctx || list_empty_careful(&flctx->flc_posix)) in nlm_traverse_locks() 220 spin_lock(&flctx->flc_lock); in nlm_traverse_locks() 221 for_each_file_lock(fl, &flctx->flc_posix) { in nlm_traverse_locks() 231 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks() 237 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks() 268 struct file_lock_context *flctx = locks_inode_context(inode); in nlm_file_inuse() local 273 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in nlm_file_inuse() 274 spin_lock(&flctx->flc_lock); in nlm_file_inuse() 275 for_each_file_lock(fl, &flctx->flc_posix) { in nlm_file_inuse() [all …]
|
/linux-6.12.1/include/linux/ |
D | filelock.h | 219 bool locks_owner_has_blockers(struct file_lock_context *flctx, 398 static inline bool locks_owner_has_blockers(struct file_lock_context *flctx, in locks_owner_has_blockers() argument 423 struct file_lock_context *flctx; in break_lease() local 431 flctx = READ_ONCE(inode->i_flctx); in break_lease() 432 if (!flctx) in break_lease() 435 if (!list_empty_careful(&flctx->flc_lease)) in break_lease() 442 struct file_lock_context *flctx; in break_deleg() local 450 flctx = READ_ONCE(inode->i_flctx); in break_deleg() 451 if (!flctx) in break_deleg() 454 if (!list_empty_careful(&flctx->flc_lease)) in break_deleg()
|
/linux-6.12.1/fs/nfs/ |
D | write.c | 1159 struct file_lock_context *flctx = locks_inode_context(file_inode(file)); in nfs_flush_incompatible() local 1177 if (l_ctx && flctx && in nfs_flush_incompatible() 1178 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible() 1179 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible() 1295 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_can_extend_write() local 1308 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write() 1309 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write() 1314 spin_lock(&flctx->flc_lock); in nfs_can_extend_write() 1315 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write() 1316 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write() [all …]
|
D | delegation.c | 152 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_delegation_claim_locks() local 156 if (flctx == NULL) in nfs_delegation_claim_locks() 159 list = &flctx->flc_posix; in nfs_delegation_claim_locks() 160 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks() 165 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks() 169 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks() 171 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks() 172 list = &flctx->flc_flock; in nfs_delegation_claim_locks() 175 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
|
D | pagelist.c | 1078 struct file_lock_context *flctx; in nfs_coalesce_size() local 1083 flctx = locks_inode_context(d_inode(nfs_req_openctx(req)->dentry)); in nfs_coalesce_size() 1084 if (flctx != NULL && in nfs_coalesce_size() 1085 !(list_empty_careful(&flctx->flc_posix) && in nfs_coalesce_size() 1086 list_empty_careful(&flctx->flc_flock)) && in nfs_coalesce_size()
|
D | nfs4state.c | 1508 struct file_lock_context *flctx = locks_inode_context(inode); in nfs4_reclaim_locks() local 1511 if (flctx == NULL) in nfs4_reclaim_locks() 1514 list = &flctx->flc_posix; in nfs4_reclaim_locks() 1518 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks() 1523 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks() 1554 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks() 1556 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks() 1557 list = &flctx->flc_flock; in nfs4_reclaim_locks() 1560 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
|
/linux-6.12.1/fs/ |
D | locks.c | 331 bool locks_owner_has_blockers(struct file_lock_context *flctx, fl_owner_t owner) in locks_owner_has_blockers() argument 335 spin_lock(&flctx->flc_lock); in locks_owner_has_blockers() 336 list_for_each_entry(flc, &flctx->flc_posix, flc_list) { in locks_owner_has_blockers() 340 spin_unlock(&flctx->flc_lock); in locks_owner_has_blockers() 344 spin_unlock(&flctx->flc_lock); in locks_owner_has_blockers() 2646 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument 2651 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()
|
/linux-6.12.1/fs/smb/client/ |
D | file.c | 1825 struct file_lock_context *flctx = locks_inode_context(inode); in cifs_push_posix_locks() local 1834 if (!flctx) in cifs_push_posix_locks() 1837 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1838 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks() 1841 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks() 1860 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1861 for_each_file_lock(flock, &flctx->flc_posix) { in cifs_push_posix_locks() 1884 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
|
/linux-6.12.1/fs/nfsd/ |
D | nfs4state.c | 8355 struct file_lock_context *flctx; in check_for_locks() local 8366 flctx = locks_inode_context(inode); in check_for_locks() 8368 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks() 8369 spin_lock(&flctx->flc_lock); in check_for_locks() 8370 for_each_file_lock(fl, &flctx->flc_posix) { in check_for_locks() 8376 spin_unlock(&flctx->flc_lock); in check_for_locks()
|