Home
last modified time | relevance | path

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

/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 …]
/fs/nfs/
Dwrite.c1194 struct file_lock_context *flctx = locks_inode_context(file_inode(file)); in nfs_flush_incompatible() local
1212 if (l_ctx && flctx && in nfs_flush_incompatible()
1213 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()
1214 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()
1330 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_can_extend_write() local
1340 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()
1341 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()
1346 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()
1347 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()
1348 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()
/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()
2575 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument
2580 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()
/fs/smb/client/
Dfile.c1641 struct file_lock_context *flctx = locks_inode_context(inode); in cifs_push_posix_locks() local
1650 if (!flctx) in cifs_push_posix_locks()
1653 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1654 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks()
1657 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
1676 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()
1677 list_for_each_entry(flock, &flctx->flc_posix, fl_list) { in cifs_push_posix_locks()
1698 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
/fs/nfsd/
Dnfs4state.c7891 struct file_lock_context *flctx; in check_for_locks() local
7902 flctx = locks_inode_context(inode); in check_for_locks()
7904 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks()
7905 spin_lock(&flctx->flc_lock); in check_for_locks()
7906 list_for_each_entry(fl, &flctx->flc_posix, fl_list) { in check_for_locks()
7912 spin_unlock(&flctx->flc_lock); in check_for_locks()