Lines Matching refs:ilock_flags
1501 unsigned int ilock_flags = 0; in btrfs_buffered_write() local
1506 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write()
1508 ret = btrfs_inode_lock(inode, ilock_flags); in btrfs_buffered_write()
1743 btrfs_inode_unlock(inode, ilock_flags); in btrfs_buffered_write()
1772 unsigned int ilock_flags = 0; in btrfs_direct_write() local
1776 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_direct_write()
1780 ilock_flags |= BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1783 err = btrfs_inode_lock(inode, ilock_flags); in btrfs_direct_write()
1789 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1795 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1804 if ((ilock_flags & BTRFS_ILOCK_SHARED) && in btrfs_direct_write()
1806 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1807 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1812 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1843 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()