diff options
author | Qu Wenruo <wqu@suse.com> | 2020-06-24 18:02:58 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-07 20:57:27 -0400 |
commit | bccee8bcb2b5fffd4a81f99cd340af8bef494a5e (patch) | |
tree | 45ead592aeb9d0917ae9e0349578836a0e619cb1 | |
parent | 207011b81ea5a3b7c8d48e929847f33a09c0e786 (diff) | |
download | u-boot-bccee8bcb2b5fffd4a81f99cd340af8bef494a5e.tar.gz u-boot-bccee8bcb2b5fffd4a81f99cd340af8bef494a5e.tar.bz2 u-boot-bccee8bcb2b5fffd4a81f99cd340af8bef494a5e.zip |
fs: btrfs: Crossport struct btrfs_root to ctree.h
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>
-rw-r--r-- | fs/btrfs/ctree.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 0aa6b49a65..e658c88aee 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -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 { |