Lines Matching refs:flctx
1199 struct file_lock_context *flctx = file_inode(file)->i_flctx; in nfs_flush_incompatible() local
1217 if (l_ctx && flctx && in nfs_flush_incompatible()
1218 !(list_empty_careful(&flctx->flc_posix) && in nfs_flush_incompatible()
1219 list_empty_careful(&flctx->flc_flock))) { in nfs_flush_incompatible()
1317 struct file_lock_context *flctx = inode->i_flctx; in nfs_can_extend_write() local
1326 if (!flctx || (list_empty_careful(&flctx->flc_flock) && in nfs_can_extend_write()
1327 list_empty_careful(&flctx->flc_posix))) in nfs_can_extend_write()
1332 spin_lock(&flctx->flc_lock); in nfs_can_extend_write()
1333 if (!list_empty(&flctx->flc_posix)) { in nfs_can_extend_write()
1334 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
1338 } else if (!list_empty(&flctx->flc_flock)) { in nfs_can_extend_write()
1339 fl = list_first_entry(&flctx->flc_flock, struct file_lock, in nfs_can_extend_write()
1344 spin_unlock(&flctx->flc_lock); in nfs_can_extend_write()