summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dquot_item.c
diff options
context:
space:
mode:
authorDave Chinner2015-03-25 04:03:32 +0100
committerDave Chinner2015-03-25 04:03:32 +0100
commit95afcf5c7bca93fb84d260f70c304f35ef4c3114 (patch)
tree00953639906542d16ddb87c1b07141debee5eb50 /fs/xfs/xfs_dquot_item.c
parentxfs: remove deprecated mount options (diff)
downloadkernel-qcow2-linux-95afcf5c7bca93fb84d260f70c304f35ef4c3114.tar.gz
kernel-qcow2-linux-95afcf5c7bca93fb84d260f70c304f35ef4c3114.tar.xz
kernel-qcow2-linux-95afcf5c7bca93fb84d260f70c304f35ef4c3114.zip
xfs: clean up inode locking for RENAME_WHITEOUT
When doing RENAME_WHITEOUT, we now have to lock 5 inodes into the rename transaction. This means we need to update xfs_sort_for_rename() and xfs_lock_inodes() to handle up to 5 inodes. Because of the vagaries of rename, this means we could have anywhere between 3 and 5 inodes locked into the transaction.... While xfs_lock_inodes() does not need anything other than an assert telling us we are passing more inodes that we ever thought we should see, it could do with a logic rework to remove all the indenting. This is not a functional change - it just makes the code a lot easier to read. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_dquot_item.c')
0 files changed, 0 insertions, 0 deletions