]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: refactor xfs_trans_roll
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Oct 2017 18:38:49 +0000 (13:38 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 18 Oct 2017 18:38:49 +0000 (13:38 -0500)
commitd67406c9f22c615c7893f282da9e0c28ef37bca0
tree7f5b042e48ab233db9d3ac9717aebae1886ddbc0
parentd8c47890ce3839d764b97b7bceddf5520d53b4ed
xfs: refactor xfs_trans_roll

Source kernel commit: 411350df14a3d6f1c769ea64a8b43a71f8d9760e

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_trans.h
libxfs/libxfs_api_defs.h
libxfs/libxfs_priv.h
libxfs/trans.c
libxfs/util.c
libxfs/xfs_attr.c
libxfs/xfs_attr_leaf.c
libxfs/xfs_attr_remote.c
libxfs/xfs_defer.c