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