Searched refs:flctx (Results 1 – 6 of 6) sorted by relevance
279 struct file_lock_context *flctx = locks_inode_context(inode); in nlm_traverse_locks() local282 if (!flctx || list_empty_careful(&flctx->flc_posix)) in nlm_traverse_locks()286 spin_lock(&flctx->flc_lock); in nlm_traverse_locks()287 for_each_file_lock(fl, &flctx->flc_posix) { in nlm_traverse_locks()297 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks()303 spin_unlock(&flctx->flc_lock); in nlm_traverse_locks()334 struct file_lock_context *flctx = locks_inode_context(inode); in nlm_file_inuse() local339 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in nlm_file_inuse()340 spin_lock(&flctx->flc_lock); in nlm_file_inuse()341 for_each_file_lock(fl, &flctx->flc_posix) { in nlm_file_inuse()[all …]
1122 struct file_lock_context *flctx = locks_inode_context(file_inode(file)); in nfs_flush_incompatible() local1140 if (l_ctx && flctx && in nfs_flush_incompatible()1141 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()1142 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()1258 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_can_extend_write() local1271 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()1272 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()1277 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()1278 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()1279 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()[all …]
178 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_delegation_claim_locks() local182 if (flctx == NULL) in nfs_delegation_claim_locks()185 list = &flctx->flc_posix; in nfs_delegation_claim_locks()189 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()194 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()200 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()202 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks()203 list = &flctx->flc_flock; in nfs_delegation_claim_locks()206 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
1462 struct file_lock_context *flctx = locks_inode_context(inode); in nfs4_reclaim_locks() local1465 if (flctx == NULL) in nfs4_reclaim_locks()1468 list = &flctx->flc_posix; in nfs4_reclaim_locks()1472 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()1477 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()1508 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()1510 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks()1511 list = &flctx->flc_flock; in nfs4_reclaim_locks()1514 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
1980 struct file_lock_context *flctx = locks_inode_context(inode); in cifs_push_posix_locks() 1989 if (!flctx) in cifs_push_posix_locks() 1992 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 1993 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks() 1996 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks() 2015 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks() 2016 for_each_file_lock(flock, &flctx->flc_posix) { in cifs_push_posix_locks() 2039 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks() 1977 struct file_lock_context *flctx = locks_inode_context(inode); cifs_push_posix_locks() local
9461 struct file_lock_context *flctx; in check_for_locks() local9472 flctx = locks_inode_context(inode); in check_for_locks()9474 if (flctx && !list_empty_careful(&flctx->flc_posix)) { in check_for_locks()9475 spin_lock(&flctx->flc_lock); in check_for_locks()9476 for_each_file_lock(fl, &flctx->flc_posix) { in check_for_locks()9482 spin_unlock(&flctx->flc_lock); in check_for_locks()