Re: [PATCH v3 6/7] btrfs-progs: lowmem: optimization and repair for check_inode_extref()

2018-09-17 Thread Nikolay Borisov
On 17.09.2018 10:28, Su Yue wrote: > inode_extref is much similar with inode_ref, most codes are reused in > check_inode_extref(). > Exceptions: > There is no need to check root directory, so remove it. > Make check_inode_extref() verify hash value with key offset now. > > And lowmem check can

Re: [PATCH v3 6/7] btrfs-progs: lowmem: optimization and repair for check_inode_extref()

2018-09-17 Thread Qu Wenruo
On 2018/9/17 下午3:28, Su Yue wrote: > inode_extref is much similar with inode_ref, most codes are reused in > check_inode_extref(). > Exceptions: > There is no need to check root directory, so remove it. As root directory should only have one INODE_REF "..", so it shouldn't have any extref at

[PATCH v3 6/7] btrfs-progs: lowmem: optimization and repair for check_inode_extref()

2018-09-17 Thread Su Yue
inode_extref is much similar with inode_ref, most codes are reused in check_inode_extref(). Exceptions: There is no need to check root directory, so remove it. Make check_inode_extref() verify hash value with key offset now. And lowmem check can detect errors about inode_extref and try to repair