Lines Matching refs:ilock_flags
1184 unsigned int ilock_flags = 0; in btrfs_buffered_write() local
1189 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_buffered_write()
1191 ret = btrfs_inode_lock(inode, ilock_flags); in btrfs_buffered_write()
1426 btrfs_inode_unlock(inode, ilock_flags); in btrfs_buffered_write()
1455 unsigned int ilock_flags = 0; in btrfs_direct_write() local
1459 ilock_flags |= BTRFS_ILOCK_TRY; in btrfs_direct_write()
1468 ilock_flags |= BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1471 err = btrfs_inode_lock(inode, ilock_flags); in btrfs_direct_write()
1476 if ((ilock_flags & BTRFS_ILOCK_SHARED) && !IS_NOSEC(inode)) { in btrfs_direct_write()
1477 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1478 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1484 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1490 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1499 if ((ilock_flags & BTRFS_ILOCK_SHARED) && in btrfs_direct_write()
1501 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1502 ilock_flags &= ~BTRFS_ILOCK_SHARED; in btrfs_direct_write()
1507 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()
1538 btrfs_inode_unlock(inode, ilock_flags); in btrfs_direct_write()