]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: introduce fake roots for ag-rooted btrees
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 May 2020 21:37:09 +0000 (17:37 -0400)
committerEric Sandeen <sandeen@redhat.com>
Fri, 1 May 2020 21:37:09 +0000 (17:37 -0400)
commitaf05bc9bec674b8d7f1ab3f4155ed7a5cb8287d6
tree0f47e593091d13808220b19e712bbf3c7fcba93b
parent2c711623374764cd7f9e95da7fdf4d9e90feb4c0
xfs: introduce fake roots for ag-rooted btrees

Source kernel commit: e06536a692e032470130af5b2136b519595809da

Create an in-core fake root for AG-rooted btree types so that callers
can generate a whole new btree using the upcoming btree bulk load
function without making the new tree accessible from the rest of the
filesystem.  It is up to the individual btree type to provide a function
to create a staged cursor (presumably with the appropriate callouts to
update the fakeroot) and then commit the staged root back into the
filesystem.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_trace.h
libxfs/Makefile
libxfs/xfs_btree.c
libxfs/xfs_btree.h
libxfs/xfs_btree_staging.c [new file with mode: 0644]
libxfs/xfs_btree_staging.h [new file with mode: 0644]