Re: [PATCH v2 2/5] btrfs: tree-checker: Enhance btrfs_check_node output

2017-09-28 Thread Qu Wenruo
On 2017年09月29日 14:05, Nikolay Borisov wrote: On 29.09.2017 04:36, Qu Wenruo wrote: Use inline function to replace macro since we don't need stringification. (Macro still exist until all caller get updated) And add more info about the error. For nr_items error, report if it's too large or t

Re: [PATCH v2 2/5] btrfs: tree-checker: Enhance btrfs_check_node output

2017-09-28 Thread Nikolay Borisov
On 29.09.2017 04:36, Qu Wenruo wrote: > Use inline function to replace macro since we don't need > stringification. > (Macro still exist until all caller get updated) > > And add more info about the error. > > For nr_items error, report if it's too large or too small, and output > valid value r

[PATCH v2 2/5] btrfs: tree-checker: Enhance btrfs_check_node output

2017-09-28 Thread Qu Wenruo
Use inline function to replace macro since we don't need stringification. (Macro still exist until all caller get updated) And add more info about the error. For nr_items error, report if it's too large or too small, and output valid value range. For blk pointer, added a new alignment checker.