]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
xfs: refactor xfs_trans_roll
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Aug 2017 17:21:03 +0000 (10:21 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Sep 2017 17:55:30 +0000 (10:55 -0700)
commit411350df14a3d6f1c769ea64a8b43a71f8d9760e
tree6ce47a2df6894777f7147bbc4fee7fca6e9fcc34
parentf2e9ad212def50bcf4c098c6288779dd97fff0f0
xfs: refactor xfs_trans_roll

Split xfs_trans_roll into a low-level helper that just rolls the
actual transaction and a new higher level xfs_trans_roll_inode
that takes care of logging and rejoining the inode.  This gets
rid of the NULL inode case, and allows to simplify the special
cases in the deferred operation code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_attr_remote.c
fs/xfs/libxfs/xfs_defer.c
fs/xfs/xfs_attr_inactive.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.h
fs/xfs/xfs_trans_inode.c