Searched refs:flctx (Results 1 – 5 of 5) sorted by relevance
1119 struct file_lock_context *flctx = locks_inode_context(file_inode(file)); in nfs_flush_incompatible() local1137 if (l_ctx && flctx && in nfs_flush_incompatible()1138 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()1139 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()1255 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_can_extend_write() local1268 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()1269 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()1274 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()1275 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()1276 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()[all …]
177 struct file_lock_context *flctx = locks_inode_context(inode); in nfs_delegation_claim_locks() local181 if (flctx == NULL) in nfs_delegation_claim_locks()184 list = &flctx->flc_posix; in nfs_delegation_claim_locks()185 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()190 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()194 spin_lock(&flctx->flc_lock); in nfs_delegation_claim_locks()196 if (list == &flctx->flc_posix) { in nfs_delegation_claim_locks()197 list = &flctx->flc_flock; in nfs_delegation_claim_locks()200 spin_unlock(&flctx->flc_lock); in nfs_delegation_claim_locks()
1436 struct file_lock_context *flctx = locks_inode_context(inode); in nfs4_reclaim_locks() local1439 if (flctx == NULL) in nfs4_reclaim_locks()1442 list = &flctx->flc_posix; in nfs4_reclaim_locks()1446 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()1451 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()1482 spin_lock(&flctx->flc_lock); in nfs4_reclaim_locks()1484 if (list == &flctx->flc_posix) { in nfs4_reclaim_locks()1485 list = &flctx->flc_flock; in nfs4_reclaim_locks()1488 spin_unlock(&flctx->flc_lock); in nfs4_reclaim_locks()
1081 struct file_lock_context *flctx; in nfs_coalesce_size() local1086 flctx = locks_inode_context(d_inode(nfs_req_openctx(req)->dentry)); in nfs_coalesce_size()1087 if (flctx != NULL && in nfs_coalesce_size()1088 !(list_empty_careful(&flctx->flc_posix) && in nfs_coalesce_size()1089 list_empty_careful(&flctx->flc_flock)) && in nfs_coalesce_size()
1928 struct file_lock_context *flctx = locks_inode_context(inode); in cifs_push_posix_locks() local1937 if (!flctx) in cifs_push_posix_locks()1940 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()1941 list_for_each(el, &flctx->flc_posix) { in cifs_push_posix_locks()1944 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()1963 spin_lock(&flctx->flc_lock); in cifs_push_posix_locks()1964 for_each_file_lock(flock, &flctx->flc_posix) { in cifs_push_posix_locks()1987 spin_unlock(&flctx->flc_lock); in cifs_push_posix_locks()