Re: [PATCH v3 7/7] btrfs-progs: Cleanup use of root in leaf_data_end

2018-01-31 Thread David Sterba
On Wed, Jan 31, 2018 at 11:09:19AM +0800, Gu Jinxiang wrote: > In function leaf_data_end, root is just used to get fs_info, > so change the parameter of this function from btrfs_root to > btrfs_fs_info. > And also make it consistent with kernel. > > Changelog: > v3->v2: > Add const to parameter

[PATCH v3 7/7] btrfs-progs: Cleanup use of root in leaf_data_end

2018-01-30 Thread Gu Jinxiang
In function leaf_data_end, root is just used to get fs_info, so change the parameter of this function from btrfs_root to btrfs_fs_info. And also make it consistent with kernel. Changelog: v3->v2: Add const to parameter leaf of function btrfs_item_offset_nr to keep type consistent with