Searched refs:flctx (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/fs/lockd/ |
D | svcsubs.c | 168 struct file_lock_context *flctx = inode->i_flctx; in nlm_traverse_locks() local 171 if (!flctx || list_empty_careful(&flctx->flc_posix)) in nlm_traverse_locks() 175 spin_lock(&flctx->flc_lock); in nlm_traverse_locks() 176 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_traverse_locks() 187 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks() 199 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks() 230 struct file_lock_context *flctx = inode->i_flctx; in nlm_file_inuse() local 235 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in nlm_file_inuse() 236 spin_lock(&flctx->flc_lock); in nlm_file_inuse() 237 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_file_inuse() [all …]
|
/Linux-v5.4/fs/nfs/ |
D | delegation.c | 109 struct file_lock_context *flctx = inode->i_flctx; in nfs_delegation_claim_locks() local 113 if (flctx == NULL) in nfs_delegation_claim_locks() 116 list = &flctx->flc_posix; in nfs_delegation_claim_locks() 117 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks() 122 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks() 126 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks() 128 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks() 129 list = &flctx->flc_flock; in nfs_delegation_claim_locks() 132 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
|
D | write.c | 1199 struct file_lock_context *flctx = file_inode(file)->i_flctx; in nfs_flush_incompatible() local 1217 if (l_ctx && flctx && in nfs_flush_incompatible() 1218 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible() 1219 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible() 1317 struct file_lock_context *flctx = inode->i_flctx; in nfs_can_extend_write() local 1326 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write() 1327 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write() 1332 spin_lock(&flctx->flc_lock); in nfs_can_extend_write() 1333 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write() 1334 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write() [all …]
|
D | pagelist.c | 930 struct file_lock_context *flctx; in nfs_can_coalesce_requests() local 935 flctx = d_inode(nfs_req_openctx(req)->dentry)->i_flctx; in nfs_can_coalesce_requests() 936 if (flctx != NULL && in nfs_can_coalesce_requests() 937 !(list_empty_careful(&flctx->flc_posix) && in nfs_can_coalesce_requests() 938 list_empty_careful(&flctx->flc_flock)) && in nfs_can_coalesce_requests()
|
D | nfs4state.c | 1496 struct file_lock_context *flctx = inode->i_flctx; in nfs4_reclaim_locks() local 1499 if (flctx == NULL) in nfs4_reclaim_locks() 1502 list = &flctx->flc_posix; in nfs4_reclaim_locks() 1506 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks() 1511 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks() 1542 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks() 1544 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks() 1545 list = &flctx->flc_flock; in nfs4_reclaim_locks() 1548 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
|
/Linux-v5.4/fs/cifs/ |
D | file.c | 1250 struct file_lock_context *flctx = inode->i_flctx; in cifs_push_posix_locks() local 1259 if (!flctx) in cifs_push_posix_locks() 1262 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1263 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks() 1266 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks() 1285 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1286 list_for_each_entry(flock, &flctx->flc_posix, fl_list) { in cifs_push_posix_locks() 1307 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
|
/Linux-v5.4/fs/nfsd/ |
D | nfs4state.c | 6794 struct file_lock_context *flctx; in check_for_locks() local 6803 flctx = inode->i_flctx; in check_for_locks() 6805 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks() 6806 spin_lock(&flctx->flc_lock); in check_for_locks() 6807 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks() 6813 spin_unlock(&flctx->flc_lock); in check_for_locks()
|
/Linux-v5.4/fs/ |
D | locks.c | 2701 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument 2706 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()
|