Home
last modified time | relevance | path

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

/linux-6.3-rc2/fs/lockd/
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 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_traverse_locks()
231 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks()
237 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks()
273 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in nlm_file_inuse()
274 spin_lock(&flctx->flc_lock); in nlm_file_inuse()
275 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_file_inuse()
277 spin_unlock(&flctx->flc_lock); in nlm_file_inuse()
[all …]
/linux-6.3-rc2/fs/nfs/
A Dwrite.c1207 if (l_ctx && flctx && in nfs_flush_incompatible()
1208 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()
1209 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()
1335 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()
1336 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()
1341 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()
1342 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()
1343 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
1347 } else if (!list_empty(&flctx->flc_flock)) { in nfs_can_extend_write()
1348 fl = list_first_entry(&flctx->flc_flock, struct file_lock, in nfs_can_extend_write()
[all …]
A Ddelegation.c149 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_delegation_claim_locks() local
153 if (flctx == NULL) in nfs_delegation_claim_locks()
156 list = &flctx->flc_posix; in nfs_delegation_claim_locks()
157 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()
162 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
166 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()
168 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks()
169 list = &flctx->flc_flock; in nfs_delegation_claim_locks()
172 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
A Dpagelist.c1178 struct file_lock_context *flctx; in nfs_coalesce_size() local
1183 flctx = locks_inode_context(d_inode(nfs_req_openctx(req)->dentry)); in nfs_coalesce_size()
1184 if (flctx != NULL && in nfs_coalesce_size()
1185 !(list_empty_careful(&flctx->flc_posix) && in nfs_coalesce_size()
1186 list_empty_careful(&flctx->flc_flock)) && in nfs_coalesce_size()
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-6.3-rc2/include/linux/
A Dfilelock.h181 bool locks_owner_has_blockers(struct file_lock_context *flctx,
330 static inline bool locks_owner_has_blockers(struct file_lock_context *flctx, in locks_owner_has_blockers() argument
/linux-6.3-rc2/fs/
A Dlocks.c313 bool locks_owner_has_blockers(struct file_lock_context *flctx, in locks_owner_has_blockers() argument
318 spin_lock(&flctx->flc_lock); in locks_owner_has_blockers()
319 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in locks_owner_has_blockers()
323 spin_unlock(&flctx->flc_lock); in locks_owner_has_blockers()
327 spin_unlock(&flctx->flc_lock); in locks_owner_has_blockers()
2567 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument
2572 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()
/linux-6.3-rc2/fs/cifs/
A Dfile.c1545 struct file_lock_context *flctx = locks_inode_context(inode); in cifs_push_posix_locks() local
1554 if (!flctx) in cifs_push_posix_locks()
1557 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1558 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks()
1561 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
1580 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1581 list_for_each_entry(flock, &flctx->flc_posix, fl_list) { in cifs_push_posix_locks()
1602 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
/linux-6.3-rc2/fs/nfsd/
A Dnfs4state.c7840 struct file_lock_context *flctx; in check_for_locks() local
7849 flctx = locks_inode_context(inode); in check_for_locks()
7851 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks()
7852 spin_lock(&flctx->flc_lock); in check_for_locks()
7853 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks()
7859 spin_unlock(&flctx->flc_lock); in check_for_locks()

Completed in 46 milliseconds