]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: move deferred operations into a separate file
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 10 Aug 2016 01:29:37 +0000 (11:29 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 10 Aug 2016 01:29:37 +0000 (11:29 +1000)
commita18e1f796c8e3f707ed88b1114e631d4defeabe2
tree2856c20f68dce2c3b3d73faefc5be39f912cec50
parentf31736bfd834fb443d5b89b140d88f7d99b269c3
xfs: move deferred operations into a separate file

Source kernel commit: 4e0cc29b91a8056f902f0974b49084b07491905f

All the code around struct xfs_bmap_free basically implements a
deferred operation framework through which we can roll transactions
(to unlock buffers and avoid violating lock order rules) while
managing all the necessary log redo items.  Previously we only used
this code to free extents after some sort of mapping operation, but
with the advent of rmap and reflink, we suddenly need to do more than
that.

With that in mind, xfs_bmap_free really becomes a deferred ops control
structure.  Rename the structure and move the deferred ops into their
own file to avoid further bloating of the bmap code.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/Makefile
libxfs/xfs_defer.c [new file with mode: 0644]
libxfs/xfs_defer.h [new file with mode: 0644]