On Tue, Apr 07, 2020 at 04:44:33PM +0800, Qu Wenruo wrote: > These structures all are on-disk format. Move them to btrfs_tree.h > > This move includes: > - btrfs magic > It's a surprise that it's not even definied in btrfs_tree.h > > - tree block max level > Move it before btrfs_header definition. > > - tree block backref revision > - btrfs_header structure > - btrfs_root_backup structure > - btrfs_super_block structure > - BTRFS_FEATURE_* flags > > - btrfs_item structure > - btrfs_leaf structure > - btrfs_key_ptr structure > - btrfs_node structure > > - BTRFS_INODE_* flags > Move them before btrfs_inode_item definition. > > Signed-off-by: Qu Wenruo <wqu@xxxxxxxx> > --- > This moved btree_tree.h is more appropriate for btrfs-progs to reuse. This actually answers 'why' the change is made so this should be in the changelog but I still want to know the reason to move it to the header. Do you mean that progs from git would be built #including this header directly?
