Re: [PATCH 02/13] btrfs-progs: lowmem: move nbytes check before isize check

2018-10-23 Thread Qu Wenruo
On 2018/10/23 下午5:41, Su Yue wrote: > For files, lowmem repair will try to check nbytes and isize, > but isize check depends nbytes. > > Once bytes has been repaired, then isize should be checked and > repaired. > So move nbytes check before isize check. Also set nbytes to > extent_size once

[PATCH 02/13] btrfs-progs: lowmem: move nbytes check before isize check

2018-10-23 Thread Su Yue
For files, lowmem repair will try to check nbytes and isize, but isize check depends nbytes. Once bytes has been repaired, then isize should be checked and repaired. So move nbytes check before isize check. Also set nbytes to extent_size once repaired successfully. Signed-off-by: Su Yue ---