]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6f7406191b778c559c4a4e7b9c7c01751c4debf
treebc26a18e07bb3e0bf4fd44abd7903f9e60f25f79
parentd4d889bcdb839950cd5ff41f280aae9cdead1d1b
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