]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add refcount btree operations
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:20:26 +0000 (12:20 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:20:26 +0000 (12:20 +1100)
commitbc859611285b0edd45c69e1caf93ba650e19ca87
tree8d0526c42710ffcc9528357f0444595d216bc2ca
parentdfa69e0a5cdd798f28bf317752edbcfb23730cad
xfs: add refcount btree operations

Source kernel commit: bdf28630b72154e5766cbad5874576b6f22e7237

Implement the generic btree operations required to manipulate refcount
btree blocks.  The implementation is similar to the bmapbt, though it
will only allocate and free blocks from the AG.

Since the refcount root and level fields are separate from the
existing roots and levels array, they need a separate logging flag.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
[hch: fix logging of AGF refcount btree fields]
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/xfs_trace.h
libxfs/Makefile
libxfs/xfs_alloc.c
libxfs/xfs_format.h
libxfs/xfs_refcount.c [new file with mode: 0644]
libxfs/xfs_refcount.h [new file with mode: 0644]
libxfs/xfs_refcount_btree.c