Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-06 Thread Chao Yu
>>> Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net >>> Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan >>> free nid >>> >>> On 2017/11/3 18:29, Fan Li wrote: >>>> >>>> >>>>>

Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-06 Thread Chao Yu
>>> Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net >>> Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan >>> free nid >>> >>> On 2017/11/3 18:29, Fan Li wrote: >>>> >>>> >>>>>

Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-06 Thread Chao Yu
t;>> Sent: Friday, November 03, 2017 4:54 PM >>>> To: Fan Li; 'Chao Yu'; 'Jaegeuk Kim' >>>> Cc: linux-kernel@vger.kernel.org; >>>> linux-f2fs-de...@lists.sourceforge.net >>>> Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure

Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-06 Thread Chao Yu
t;>> Sent: Friday, November 03, 2017 4:54 PM >>>> To: Fan Li; 'Chao Yu'; 'Jaegeuk Kim' >>>> Cc: linux-kernel@vger.kernel.org; >>>> linux-f2fs-de...@lists.sourceforge.net >>>> Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure

RE: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-05 Thread Fan Li
u'; 'Jaegeuk Kim' > >> Cc: linux-kernel@vger.kernel.org; > >> linux-f2fs-de...@lists.sourceforge.net > >> Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of > >> scan free nid > >> > >> On 2017/11/3 15:31, Fan Li wrote: > >>&

RE: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-05 Thread Fan Li
u'; 'Jaegeuk Kim' > >> Cc: linux-kernel@vger.kernel.org; > >> linux-f2fs-de...@lists.sourceforge.net > >> Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of > >> scan free nid > >> > >> On 2017/11/3 15:31, Fan Li wrote: > >>&

Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-03 Thread Chao Yu
ourceforge.net >> Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan >> free nid >> >> On 2017/11/3 15:31, Fan Li wrote: >>> In current version, we preserve 8 pages of nat blocks as free nids, we >>> build bitmaps for it and

Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-03 Thread Chao Yu
ourceforge.net >> Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan >> free nid >> >> On 2017/11/3 15:31, Fan Li wrote: >>> In current version, we preserve 8 pages of nat blocks as free nids, we >>> build bitmaps for it and

RE: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-03 Thread Fan Li
> -Original Message- > From: Chao Yu [mailto:yuch...@huawei.com] > Sent: Friday, November 03, 2017 4:54 PM > To: Fan Li; 'Chao Yu'; 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: mo

RE: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-03 Thread Fan Li
> -Original Message- > From: Chao Yu [mailto:yuch...@huawei.com] > Sent: Friday, November 03, 2017 4:54 PM > To: Fan Li; 'Chao Yu'; 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: mo

Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-03 Thread Chao Yu
On 2017/11/3 15:31, Fan Li wrote: > In current version, we preserve 8 pages of nat blocks as free nids, > we build bitmaps for it and use them to allocate nids until its number > drops below NAT_ENTRY_PER_BLOCK. > > After that, we have a problem, scan_free_nid_bits will scan the same > 8 pages

Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-03 Thread Chao Yu
On 2017/11/3 15:31, Fan Li wrote: > In current version, we preserve 8 pages of nat blocks as free nids, > we build bitmaps for it and use them to allocate nids until its number > drops below NAT_ENTRY_PER_BLOCK. > > After that, we have a problem, scan_free_nid_bits will scan the same > 8 pages