Home
last modified time | relevance | path

Searched refs:flctx (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/fs/lockd/
Dsvcsubs.c167 struct file_lock_context *flctx = inode->i_flctx; in nlm_traverse_locks() local
170 if (!flctx || list_empty_careful(&flctx->flc_posix)) in nlm_traverse_locks()
174 spin_lock(&flctx->flc_lock); in nlm_traverse_locks()
175 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_traverse_locks()
186 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks()
198 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks()
229 struct file_lock_context *flctx = inode->i_flctx; in nlm_file_inuse() local
234 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in nlm_file_inuse()
235 spin_lock(&flctx->flc_lock); in nlm_file_inuse()
236 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_file_inuse()
[all …]
/Linux-v4.19/fs/nfs/
Ddelegation.c100 struct file_lock_context *flctx = inode->i_flctx; in nfs_delegation_claim_locks() local
104 if (flctx == NULL) in nfs_delegation_claim_locks()
107 list = &flctx->flc_posix; in nfs_delegation_claim_locks()
108 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()
113 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
117 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()
119 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks()
120 list = &flctx->flc_flock; in nfs_delegation_claim_locks()
123 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
Dwrite.c1191 struct file_lock_context *flctx = file_inode(file)->i_flctx; in nfs_flush_incompatible() local
1209 if (l_ctx && flctx && in nfs_flush_incompatible()
1210 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()
1211 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()
1291 struct file_lock_context *flctx = inode->i_flctx; in nfs_can_extend_write() local
1300 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()
1301 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()
1306 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()
1307 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()
1308 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
[all …]
Dpagelist.c909 struct file_lock_context *flctx; in nfs_can_coalesce_requests() local
914 flctx = d_inode(req->wb_context->dentry)->i_flctx; in nfs_can_coalesce_requests()
915 if (flctx != NULL && in nfs_can_coalesce_requests()
916 !(list_empty_careful(&flctx->flc_posix) && in nfs_can_coalesce_requests()
917 list_empty_careful(&flctx->flc_flock)) && in nfs_can_coalesce_requests()
Dnfs4state.c1495 struct file_lock_context *flctx = inode->i_flctx; in nfs4_reclaim_locks() local
1498 if (flctx == NULL) in nfs4_reclaim_locks()
1501 list = &flctx->flc_posix; in nfs4_reclaim_locks()
1505 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1510 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
1540 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1542 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks()
1543 list = &flctx->flc_flock; in nfs4_reclaim_locks()
1546 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
/Linux-v4.19/fs/cifs/
Dfile.c1197 struct file_lock_context *flctx = inode->i_flctx; in cifs_push_posix_locks() local
1206 if (!flctx) in cifs_push_posix_locks()
1209 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1210 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks()
1213 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
1232 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1233 list_for_each_entry(flock, &flctx->flc_posix, fl_list) { in cifs_push_posix_locks()
1254 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
/Linux-v4.19/fs/nfsd/
Dnfs4state.c6320 struct file_lock_context *flctx; in check_for_locks() local
6329 flctx = inode->i_flctx; in check_for_locks()
6331 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks()
6332 spin_lock(&flctx->flc_lock); in check_for_locks()
6333 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks()
6339 spin_unlock(&flctx->flc_lock); in check_for_locks()
/Linux-v4.19/fs/
Dlocks.c2500 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument
2512 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()