]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: prepare refcount functions to deal with rtrefcountbt
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:52 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:59 +0000 (09:15 -0800)
commit842d5d6da677fda5a5c46521176f6f25ac437a83
tree12dc2214715b5e1fd8290829d906b77a5059cee4
parentdb387f6765db713f48d6946021201d29cf21f9ab
xfs: prepare refcount functions to deal with rtrefcountbt

Source kernel commit: 01cef1db246ee8b094fca6df23ea6d4335748181

Prepare the high-level refcount functions to deal with the new realtime
refcountbt and its slightly different conventions.  Provide the ability
to talk to either refcountbt or rtrefcountbt formats from the same high
level code.

Note that we leave the _recover_cow_leftovers functions for a separate
patch so that we can convert it all at once.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_refcount.c
libxfs/xfs_refcount.h