Home
last modified time | relevance | path

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

/linux-4.1.27/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-4.1.27/fs/nfs/
Ddelegation.c88 struct file_lock_context *flctx = inode->i_flctx; in nfs_delegation_claim_locks() local
92 if (flctx == NULL) in nfs_delegation_claim_locks()
95 list = &flctx->flc_posix; in nfs_delegation_claim_locks()
96 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()
101 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
105 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()
107 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks()
108 list = &flctx->flc_flock; in nfs_delegation_claim_locks()
111 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
Dwrite.c1095 struct file_lock_context *flctx = file_inode(file)->i_flctx; in nfs_flush_incompatible() local
1114 if (l_ctx && flctx && in nfs_flush_incompatible()
1115 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()
1116 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()
1195 struct file_lock_context *flctx = inode->i_flctx; in nfs_can_extend_write() local
1204 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()
1205 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()
1210 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()
1211 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()
1212 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
[all …]
Dpagelist.c936 struct file_lock_context *flctx; in nfs_can_coalesce_requests() local
941 flctx = d_inode(req->wb_context->dentry)->i_flctx; in nfs_can_coalesce_requests()
942 if (flctx != NULL && in nfs_can_coalesce_requests()
943 !(list_empty_careful(&flctx->flc_posix) && in nfs_can_coalesce_requests()
944 list_empty_careful(&flctx->flc_flock)) && in nfs_can_coalesce_requests()
Dnfs4state.c1390 struct file_lock_context *flctx = inode->i_flctx; in nfs4_reclaim_locks() local
1393 if (flctx == NULL) in nfs4_reclaim_locks()
1396 list = &flctx->flc_posix; in nfs4_reclaim_locks()
1400 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1405 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
1432 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1434 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks()
1435 list = &flctx->flc_flock; in nfs4_reclaim_locks()
1438 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
/linux-4.1.27/fs/cifs/
Dfile.c1130 struct file_lock_context *flctx = inode->i_flctx; in cifs_push_posix_locks() local
1139 if (!flctx) in cifs_push_posix_locks()
1142 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1143 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks()
1146 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
1165 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1166 list_for_each_entry(flock, &flctx->flc_posix, fl_list) { in cifs_push_posix_locks()
1187 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
/linux-4.1.27/fs/nfsd/
Dnfs4state.c5797 struct file_lock_context *flctx; in check_for_locks() local
5806 flctx = inode->i_flctx; in check_for_locks()
5808 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks()
5809 spin_lock(&flctx->flc_lock); in check_for_locks()
5810 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks()
5816 spin_unlock(&flctx->flc_lock); in check_for_locks()
/linux-4.1.27/fs/
Dlocks.c2411 struct file_lock_context *flctx = inode->i_flctx; in locks_remove_flock() local
2413 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()