Re: [PATCH] f2fs: fix indefinite loop scanning for free nid

2020-08-18 Thread Sahitya Tummala
On Tue, Aug 18, 2020 at 03:25:47PM +0530, Sahitya Tummala wrote: > On Tue, Aug 18, 2020 at 04:29:05PM +0800, Chao Yu wrote: > > On 2020/8/14 16:05, Sahitya Tummala wrote: > > >If the sbi->ckpt->next_free_nid is not NAT block aligned and if there > > >are free nids in that NAT block between the star

Re: [PATCH] f2fs: fix indefinite loop scanning for free nid

2020-08-18 Thread Chao Yu
On 2020/8/18 17:55, Sahitya Tummala wrote: On Tue, Aug 18, 2020 at 04:29:05PM +0800, Chao Yu wrote: On 2020/8/14 16:05, Sahitya Tummala wrote: If the sbi->ckpt->next_free_nid is not NAT block aligned and if there are free nids in that NAT block between the start of the block and next_free_nid,

Re: [PATCH] f2fs: fix indefinite loop scanning for free nid

2020-08-18 Thread Sahitya Tummala
On Tue, Aug 18, 2020 at 04:29:05PM +0800, Chao Yu wrote: > On 2020/8/14 16:05, Sahitya Tummala wrote: > >If the sbi->ckpt->next_free_nid is not NAT block aligned and if there > >are free nids in that NAT block between the start of the block and > >next_free_nid, then those free nids will not be sca

Re: [PATCH] f2fs: fix indefinite loop scanning for free nid

2020-08-18 Thread Chao Yu
On 2020/8/14 16:05, Sahitya Tummala wrote: If the sbi->ckpt->next_free_nid is not NAT block aligned and if there are free nids in that NAT block between the start of the block and next_free_nid, then those free nids will not be scanned in scan_nat_page(). This results into mismatch between nm_i->

[PATCH] f2fs: fix indefinite loop scanning for free nid

2020-08-14 Thread Sahitya Tummala
If the sbi->ckpt->next_free_nid is not NAT block aligned and if there are free nids in that NAT block between the start of the block and next_free_nid, then those free nids will not be scanned in scan_nat_page(). This results into mismatch between nm_i->available_nids and the sum of nm_i->free_nid_