diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-03-11 18:40:26 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-03-18 16:12:23 +0100 |
commit | e06536a692e032470130af5b2136b519595809da (patch) | |
tree | b819533b68ae7acdbf3dda79c37285d9abd5d795 /fs/xfs/xfs_trace.c | |
parent | xfs: replace open-coded bitmap weight logic (diff) | |
download | linux-e06536a692e032470130af5b2136b519595809da.tar.xz linux-e06536a692e032470130af5b2136b519595809da.zip |
xfs: introduce fake roots for ag-rooted btrees
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>
Diffstat (limited to 'fs/xfs/xfs_trace.c')
-rw-r--r-- | fs/xfs/xfs_trace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trace.c b/fs/xfs/xfs_trace.c index bc85b89f88ca..e9546a6aac10 100644 --- a/fs/xfs/xfs_trace.c +++ b/fs/xfs/xfs_trace.c @@ -27,6 +27,7 @@ #include "xfs_log_recover.h" #include "xfs_filestream.h" #include "xfs_fsmap.h" +#include "xfs_btree_staging.h" /* * We include this last to have the helpers above available for the trace |