From patchwork Wed Apr 22 06:49:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 238255 List-Id: U-Boot discussion From: wqu at suse.com (Qu Wenruo) Date: Wed, 22 Apr 2020 14:49:55 +0800 Subject: [PATCH U-BOOT 12/26] fs: btrfs: Cross port struct btrfs_root to ctree.h In-Reply-To: <20200422065009.69392-1-wqu@suse.com> References: <20200422065009.69392-1-wqu@suse.com> Message-ID: <20200422065009.69392-13-wqu@suse.com> With write related members deleted. Signed-off-by: Qu Wenruo --- fs/btrfs/ctree.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index f068db6505e0..e8dcab1a0b5d 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -68,6 +68,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 {