Re: [f2fs-dev] [PATCH RESEND v2] f2fs: validate before set/clear free nat bitmap

2017-11-19 Thread Chao Yu
On 2017/11/14 15:20, LiFan wrote: > In flush_nat_entries, all dirty nats will be flushed and if their new address > isn't NULL_ADDR, their bitmaps will be updated, the free_nid_count of the > bitmaps will be increased regardless of whether the nats have already been > occupied before. This could le

[f2fs-dev] [PATCH RESEND v2] f2fs: validate before set/clear free nat bitmap

2017-11-13 Thread LiFan
In flush_nat_entries, all dirty nats will be flushed and if their new address isn't NULL_ADDR, their bitmaps will be updated, the free_nid_count of the bitmaps will be increased regardless of whether the nats have already been occupied before. This could lead to wrong free_nid_count. So this patch