Skip to content

Commit 8d99eb4

Browse files
asjgregkh
authored andcommitted
btrfs: define SUPER_FLAG_METADUMP_V2
commit e2731e5 upstream. btrfs-progs uses super flag bit BTRFS_SUPER_FLAG_METADUMP_V2 (1ULL << 34). So just define that in kernel so that we know its been used. Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4be6529 commit 8d99eb4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

fs/btrfs/disk-io.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
BTRFS_HEADER_FLAG_RELOC |\
6060
BTRFS_SUPER_FLAG_ERROR |\
6161
BTRFS_SUPER_FLAG_SEEDING |\
62-
BTRFS_SUPER_FLAG_METADUMP)
62+
BTRFS_SUPER_FLAG_METADUMP |\
63+
BTRFS_SUPER_FLAG_METADUMP_V2)
6364

6465
static const struct extent_io_ops btree_extent_io_ops;
6566
static void end_workqueue_fn(struct btrfs_work *work);

include/uapi/linux/btrfs_tree.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ struct btrfs_free_space_header {
452452

453453
#define BTRFS_SUPER_FLAG_SEEDING (1ULL << 32)
454454
#define BTRFS_SUPER_FLAG_METADUMP (1ULL << 33)
455+
#define BTRFS_SUPER_FLAG_METADUMP_V2 (1ULL << 34)
455456

456457

457458
/*

0 commit comments

Comments
 (0)