Searched refs:flctx (Results 1 – 8 of 8) sorted by relevance
| /fs/lockd/ |
| A D | svcsubs.c | 213 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() 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() 277 spin_unlock(&flctx->flc_lock); in nlm_file_inuse() [all …]
|
| /fs/nfs/ |
| A D | write.c | 1174 if (l_ctx && flctx && in nfs_flush_incompatible() 1175 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible() 1176 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible() 1305 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write() 1306 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write() 1311 spin_lock(&flctx->flc_lock); in nfs_can_extend_write() 1312 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write() 1313 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write() 1317 } else if (!list_empty(&flctx->flc_flock)) { in nfs_can_extend_write() 1318 fl = list_first_entry(&flctx->flc_flock, struct file_lock, in nfs_can_extend_write() [all …]
|
| A D | delegation.c | 162 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_delegation_claim_locks() local 166 if (flctx == NULL) in nfs_delegation_claim_locks() 169 list = &flctx->flc_posix; in nfs_delegation_claim_locks() 170 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks() 175 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks() 179 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks() 181 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks() 182 list = &flctx->flc_flock; in nfs_delegation_claim_locks() 185 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
|
| A D | pagelist.c | 1079 struct file_lock_context *flctx; in nfs_coalesce_size() local 1084 flctx = locks_inode_context(d_inode(nfs_req_openctx(req)->dentry)); in nfs_coalesce_size() 1085 if (flctx != NULL && in nfs_coalesce_size() 1086 !(list_empty_careful(&flctx->flc_posix) && in nfs_coalesce_size() 1087 list_empty_careful(&flctx->flc_flock)) && in nfs_coalesce_size()
|
| A D | nfs4state.c | 1506 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()
|
| /fs/ |
| A D | locks.c | 331 bool locks_owner_has_blockers(struct file_lock_context *flctx, fl_owner_t owner) in locks_owner_has_blockers() argument 335 spin_lock(&flctx->flc_lock); in locks_owner_has_blockers() 336 list_for_each_entry(flc, &flctx->flc_posix, flc_list) { in locks_owner_has_blockers() 340 spin_unlock(&flctx->flc_lock); in locks_owner_has_blockers() 344 spin_unlock(&flctx->flc_lock); in locks_owner_has_blockers() 2641 locks_remove_flock(struct file *filp, struct file_lock_context *flctx) in locks_remove_flock() argument 2646 if (list_empty(&flctx->flc_flock)) in locks_remove_flock()
|
| /fs/smb/client/ |
| A D | file.c | 1844 struct file_lock_context *flctx = locks_inode_context(inode); in cifs_push_posix_locks() local 1853 if (!flctx) in cifs_push_posix_locks() 1856 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1857 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks() 1860 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks() 1879 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1880 for_each_file_lock(flock, &flctx->flc_posix) { in cifs_push_posix_locks() 1903 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()
|
| /fs/nfsd/ |
| A D | nfs4state.c | 8614 struct file_lock_context *flctx; in check_for_locks() local 8625 flctx = locks_inode_context(inode); in check_for_locks() 8627 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks() 8628 spin_lock(&flctx->flc_lock); in check_for_locks() 8629 for_each_file_lock(fl, &flctx->flc_posix) { in check_for_locks() 8635 spin_unlock(&flctx->flc_lock); in check_for_locks()
|
Completed in 58 milliseconds