Home
last modified time | relevance | path

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

/linux/fs/lockd/
H A Dsvcsubs.c213 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/fs/nfs/
H A Dwrite.c1116 struct file_lock_context *flctx = locks_inode_context(file_inode(file)); in nfs_flush_incompatible() local
1134 if (l_ctx && flctx && in nfs_flush_incompatible()
1135 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()
1136 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()
1252 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_can_extend_write() local
1265 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()
1266 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()
1271 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()
1272 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()
1273 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
[all …]
H A Ddelegation.c169 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_delegation_claim_locks() local
173 if (flctx == NULL) in nfs_delegation_claim_locks()
176 list = &flctx->flc_posix; in nfs_delegation_claim_locks()
177 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()
182 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
186 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()
188 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks()
189 list = &flctx->flc_flock; in nfs_delegation_claim_locks()
192 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
H A Dpagelist.c1080 struct file_lock_context *flctx; in nfs_coalesce_size() local
1085 flctx = locks_inode_context(d_inode(nfs_req_openctx(req)->dentry)); in nfs_coalesce_size()
1086 if (flctx != NULL && in nfs_coalesce_size()
1087 !(list_empty_careful(&flctx->flc_posix) && in nfs_coalesce_size()
1088 list_empty_careful(&flctx->flc_flock)) && in nfs_coalesce_size()
H A Dnfs4state.c1506 struct file_lock_context *flctx = locks_inode_context(inode); in nfs4_reclaim_locks() local
1509 if (flctx == NULL) in nfs4_reclaim_locks()
1512 list = &flctx->flc_posix; in nfs4_reclaim_locks()
1516 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1521 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
1552 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1554 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks()
1555 list = &flctx->flc_flock; in nfs4_reclaim_locks()
1558 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
/linux/fs/smb/client/
H A Dfile.c1922 struct file_lock_context *flctx = locks_inode_context(inode); in cifs_push_posix_locks() local
1931 if (!flctx) in cifs_push_posix_locks()
1934 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1935 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks()
1938 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
1957 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1958 for_each_file_lock(flock, &flctx->flc_posix) { in cifs_push_posix_locks()
1981 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
/linux/fs/nfsd/
H A Dnfs4state.c8666 struct file_lock_context *flctx; in check_for_locks() local
8677 flctx = locks_inode_context(inode); in check_for_locks()
8679 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks()
8680 spin_lock(&flctx->flc_lock); in check_for_locks()
8681 for_each_file_lock(fl, &flctx->flc_posix) { in check_for_locks()
8687 spin_unlock(&flctx->flc_lock); in check_for_locks()