xfs: factor out xfs_ioctl_setattr transaciton preamble
authorDave Chinner <dchinner@redhat.com>
Sun, 1 Feb 2015 23:15:35 +0000 (10:15 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 1 Feb 2015 23:15:35 +0000 (10:15 +1100)
commit8f3d17ab060ec21cead88b81c65050a6ff77e9be
treebc26a18e07bb3e0bf4fd44abd7903f9e60f25f79
parent29a17c00d4b1b8eab61b85b71cb5a83455a7dc5e
xfs: factor out xfs_ioctl_setattr transaciton preamble

The setup of the transaction is done after a random smattering of
checks and before another bunch of ioperations specific
validity checks. Pull all the preamble out into a helper function
that returns a transaction or error.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_ioctl.c