Lines Matching refs:ilock_flags
804 unsigned int ilock_flags = 0; in btrfs_direct_write() local
808 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_direct_write()
817 ilock_flags |= BTRFS_ILOCK_SHARED; in btrfs_direct_write()
820 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
825 if ((ilock_flags & BTRFS_ILOCK_SHARED) && !IS_NOSEC(inode)) { in btrfs_direct_write()
826 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
827 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
833 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
839 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
848 if ((ilock_flags & BTRFS_ILOCK_SHARED) && in btrfs_direct_write()
850 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
851 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
856 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
929 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()