Lines Matching refs:ilock_flags
1198 unsigned int ilock_flags = 0;
1203 ilock_flags |= BTRFS_ILOCK_TRY;
1205 ret = btrfs_inode_lock(BTRFS_I(inode), ilock_flags);
1440 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags);
1469 unsigned int ilock_flags = 0;
1473 ilock_flags |= BTRFS_ILOCK_TRY;
1482 ilock_flags |= BTRFS_ILOCK_SHARED;
1485 err = btrfs_inode_lock(BTRFS_I(inode), ilock_flags);
1490 if ((ilock_flags & BTRFS_ILOCK_SHARED) && !IS_NOSEC(inode)) {
1491 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags);
1492 ilock_flags &= ~BTRFS_ILOCK_SHARED;
1498 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags);
1504 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags);
1513 if ((ilock_flags & BTRFS_ILOCK_SHARED) &&
1515 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags);
1516 ilock_flags &= ~BTRFS_ILOCK_SHARED;
1521 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags);
1552 btrfs_inode_unlock(BTRFS_I(inode), ilock_flags);