Home
last modified time | relevance | path

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

/Linux-v6.1/fs/lockd/
Dsvcsubs.c210 struct file_lock_context *flctx = inode->i_flctx; in nlm_traverse_locks() local
213 if (!flctx || list_empty_careful(&flctx->flc_posix)) in nlm_traverse_locks()
217 spin_lock(&flctx->flc_lock); in nlm_traverse_locks()
218 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_traverse_locks()
228 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks()
234 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks()
265 struct file_lock_context *flctx = inode->i_flctx; in nlm_file_inuse() local
270 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in nlm_file_inuse()
271 spin_lock(&flctx->flc_lock); in nlm_file_inuse()
272 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in nlm_file_inuse()
[all …]
/Linux-v6.1/fs/nfs/
Dwrite.c1188 struct file_lock_context *flctx = file_inode(file)->i_flctx; in nfs_flush_incompatible() local
1206 if (l_ctx && flctx && in nfs_flush_incompatible()
1207 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()
1208 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()
1324 struct file_lock_context *flctx = inode->i_flctx; in nfs_can_extend_write() local
1333 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()
1334 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()
1339 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()
1340 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()
1341 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
[all …]
Ddelegation.c149 struct file_lock_context *flctx = inode->i_flctx; 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.c1053 struct file_lock_context *flctx; in nfs_coalesce_size() local
1058 flctx = d_inode(nfs_req_openctx(req)->dentry)->i_flctx; in nfs_coalesce_size()
1059 if (flctx != NULL && in nfs_coalesce_size()
1060 !(list_empty_careful(&flctx->flc_posix) && in nfs_coalesce_size()
1061 list_empty_careful(&flctx->flc_flock)) && in nfs_coalesce_size()
Dnfs4state.c1504 struct file_lock_context *flctx = inode->i_flctx; in nfs4_reclaim_locks() local
1507 if (flctx == NULL) in nfs4_reclaim_locks()
1510 list = &flctx->flc_posix; in nfs4_reclaim_locks()
1514 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1519 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
1550 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()
1552 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks()
1553 list = &flctx->flc_flock; in nfs4_reclaim_locks()
1556 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
/Linux-v6.1/fs/
Dlocks.c312 bool locks_owner_has_blockers(struct file_lock_context *flctx, in locks_owner_has_blockers() argument
317 spin_lock(&flctx->flc_lock); in locks_owner_has_blockers()
318 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in locks_owner_has_blockers()
322 spin_unlock(&flctx->flc_lock); in locks_owner_has_blockers()
326 spin_unlock(&flctx->flc_lock); in locks_owner_has_blockers()
2589 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument
2594 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()
/Linux-v6.1/fs/cifs/
Dfile.c1416 struct file_lock_context *flctx = inode->i_flctx; in cifs_push_posix_locks() local
1425 if (!flctx) in cifs_push_posix_locks()
1428 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1429 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks()
1432 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
1451 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1452 list_for_each_entry(flock, &flctx->flc_posix, fl_list) { in cifs_push_posix_locks()
1473 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
/Linux-v6.1/fs/nfsd/
Dnfs4state.c7707 struct file_lock_context *flctx; in check_for_locks() local
7716 flctx = inode->i_flctx; in check_for_locks()
7718 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks()
7719 spin_lock(&flctx->flc_lock); in check_for_locks()
7720 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks()
7726 spin_unlock(&flctx->flc_lock); in check_for_locks()
/Linux-v6.1/include/linux/
Dfs.h1187 extern bool locks_owner_has_blockers(struct file_lock_context *flctx,
1324 static inline bool locks_owner_has_blockers(struct file_lock_context *flctx, in locks_owner_has_blockers() argument