Lines Matching refs:ilock_flags
1193 unsigned int ilock_flags = 0; in btrfs_buffered_write() local
1198 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write()
1200 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
1435 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_buffered_write()
1464 unsigned int ilock_flags = 0; in btrfs_direct_write() local
1468 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_direct_write()
1477 ilock_flags |= BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1480 err = btrfs_inode_lock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
1485 if ((ilock_flags & BTRFS_ILOCK_SHARED) && !IS_NOSEC(inode)) { in btrfs_direct_write()
1486 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
1487 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1493 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
1499 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
1508 if ((ilock_flags & BTRFS_ILOCK_SHARED) && in btrfs_direct_write()
1510 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
1511 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1516 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()
1547 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags); in btrfs_direct_write()