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

2017-11-02 Thread Chao Yu
ober 31, 2017 10:32 PM >>>> To: Fan Li; 'Jaegeuk Kim' >>>> Cc: linux-kernel@vger.kernel.org; >>>> linux-f2fs-de...@lists.sourceforge.net >>>> Subject: Re: [f2fs-dev] [PATCH] f2fs: modify the procedure of scan >>>> free nid >>>>

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

2017-11-02 Thread Chao Yu
ober 31, 2017 10:32 PM >>>> To: Fan Li; 'Jaegeuk Kim' >>>> Cc: linux-kernel@vger.kernel.org; >>>> linux-f2fs-de...@lists.sourceforge.net >>>> Subject: Re: [f2fs-dev] [PATCH] f2fs: modify the procedure of scan >>>> free nid >>>>

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

2017-11-01 Thread Fan Li
> -Original Message- > From: Chao Yu [mailto:c...@kernel.org] > Sent: Wednesday, November 01, 2017 8:47 PM > To: Fan Li; 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH] f2fs: modify the procedur

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

2017-11-01 Thread Fan Li
> -Original Message- > From: Chao Yu [mailto:c...@kernel.org] > Sent: Wednesday, November 01, 2017 8:47 PM > To: Fan Li; 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH] f2fs: modify the procedur

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

2017-11-01 Thread Chao Yu
et >> Subject: Re: [f2fs-dev] [PATCH] f2fs: modify the procedure of scan free nid >> >> On 2017/10/31 21:37, Fan Li wrote: >>> In current version, we preserve 8 pages of nat blocks as free nids, >>> build bitmaps for it and use them to allocate nids until its

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

2017-11-01 Thread Chao Yu
et >> Subject: Re: [f2fs-dev] [PATCH] f2fs: modify the procedure of scan free nid >> >> On 2017/10/31 21:37, Fan Li wrote: >>> In current version, we preserve 8 pages of nat blocks as free nids, >>> build bitmaps for it and use them to allocate nids until its

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

2017-11-01 Thread Fan Li
> -Original Message- > From: Chao Yu [mailto:c...@kernel.org] > Sent: Tuesday, October 31, 2017 10:32 PM > To: Fan Li; 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH] f2fs: modify the procedur

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

2017-11-01 Thread Fan Li
> -Original Message- > From: Chao Yu [mailto:c...@kernel.org] > Sent: Tuesday, October 31, 2017 10:32 PM > To: Fan Li; 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH] f2fs: modify the procedur

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

2017-10-31 Thread Chao Yu
On 2017/10/31 21:37, Fan Li wrote: > In current version, we preserve 8 pages of nat blocks as free nids, > 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] f2fs: modify the procedure of scan free nid

2017-10-31 Thread Chao Yu
On 2017/10/31 21:37, Fan Li wrote: > In current version, we preserve 8 pages of nat blocks as free nids, > 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

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

2017-10-31 Thread Fan Li
In current version, we preserve 8 pages of nat blocks as free nids, 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 trying to find more free nids, but in most cases

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

2017-10-31 Thread Fan Li
In current version, we preserve 8 pages of nat blocks as free nids, 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 trying to find more free nids, but in most cases