]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs: btrfs: Crossport struct btrfs_root to ctree.h
authorQu Wenruo <wqu@suse.com>
Wed, 24 Jun 2020 16:02:58 +0000 (18:02 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 Sep 2020 00:57:27 +0000 (20:57 -0400)
Crossport struct btrfs_root to ctree.h from btrfs-progs, with write
related members deleted.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
fs/btrfs/ctree.h

index 0aa6b49a65d2dfd22b86eba962922bec6e5e303c..e658c88aeeef7543a33495fd5c12cf47b2e243de 100644 (file)
@@ -69,6 +69,23 @@ enum btrfs_tree_block_status {
        BTRFS_TREE_BLOCK_INVALID_OFFSETS,
 };
 
+struct btrfs_root {
+       struct extent_buffer *node;
+       struct btrfs_root_item root_item;
+       struct btrfs_key root_key;
+       struct btrfs_fs_info *fs_info;
+       u64 objectid;
+       u64 last_trans;
+
+       int ref_cows;
+       int track_dirty;
+
+       u32 type;
+       u64 last_inode_alloc;
+
+       struct rb_node rb_node;
+};
+
 struct btrfs_device;
 struct btrfs_fs_devices;
 struct btrfs_fs_info {