Home
last modified time | relevance | path

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

/Linux-v6.6/fs/lockd/
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()
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 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_file_inuse()
[all …]
/Linux-v6.6/fs/nfs/
Dwrite.c1192 struct file_lock_context *flctx = locks_inode_context(file_inode(file)); in nfs_flush_incompatible() local
1210 if (l_ctx && flctx && in nfs_flush_incompatible()
1211 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()
1212 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()
1328 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_can_extend_write() local
1338 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()
1339 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()
1344 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()
1345 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()
1346 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
[all …]
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()
Dpagelist.c1181 struct file_lock_context *flctx; in nfs_coalesce_size() local
1186 flctx = locks_inode_context(d_inode(nfs_req_openctx(req)->dentry)); in nfs_coalesce_size()
1187 if (flctx != NULL && in nfs_coalesce_size()
1188 !(list_empty_careful(&flctx->flc_posix) && in nfs_coalesce_size()
1189 list_empty_careful(&flctx->flc_flock)) && in nfs_coalesce_size()
Dnfs4state.c1520 struct file_lock_context *flctx = locks_inode_context(inode); in nfs4_reclaim_locks() local
1523 if (flctx == NULL) in nfs4_reclaim_locks()
1526 list = &flctx->flc_posix; in nfs4_reclaim_locks()
1530 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1535 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
1566 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1568 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks()
1569 list = &flctx->flc_flock; in nfs4_reclaim_locks()
1572 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
/Linux-v6.6/include/linux/
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-v6.6/fs/
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()
2577 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument
2582 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()
/Linux-v6.6/fs/smb/client/
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-v6.6/fs/nfsd/
Dnfs4state.c7895 struct file_lock_context *flctx; in check_for_locks() local
7904 flctx = locks_inode_context(inode); in check_for_locks()
7906 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks()
7907 spin_lock(&flctx->flc_lock); in check_for_locks()
7908 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks()
7914 spin_unlock(&flctx->flc_lock); in check_for_locks()