Re: [f2fs-dev] [PATCH 2/2] f2fs: fix to avoid data update racing between GC and DIO

2016-07-05 Thread Jaegeuk Kim
On Fri, Jul 01, 2016 at 02:03:17PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > On 2016/7/1 8:03, Jaegeuk Kim wrote: > > Hi Chao, > > > > On Thu, Jun 30, 2016 at 04:42:48PM +0800, Chao Yu wrote: > >> Datas in file can be operated by GC and DIO simultaneously, so we will > >> face race case as below: >

Re: [f2fs-dev] [PATCH 2/2] f2fs: fix to avoid data update racing between GC and DIO

2016-07-05 Thread Chao Yu
On 2016/7/6 8:24, Jaegeuk Kim wrote: > On Fri, Jul 01, 2016 at 02:03:17PM +0800, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2016/7/1 8:03, Jaegeuk Kim wrote: >>> Hi Chao, >>> >>> On Thu, Jun 30, 2016 at 04:42:48PM +0800, Chao Yu wrote: Datas in file can be operated by GC and DIO simultaneously, so

Re: [f2fs-dev] [PATCH 1/2] f2fs: check only data or node for summary

2016-07-05 Thread He YunLei
On 2016/6/11 5:01, Jaegeuk Kim wrote: > We can check data or node types only for gc, since we allocate different type > of > data/node blocks in a different logs occasionally. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/gc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff

[f2fs-dev] [PATCH] f2fs: fix incorrect f_bfree calculation in ->statfs

2016-07-05 Thread Chao Yu
As manual described, f_bfree indicates total free blocks in fs, in f2fs, it includes two parts: visible free blocks and over-provision blocks. This patch corrrects the calculation. fsblkcnt_t f_bfree; /* free blocks in fs */ Signed-off-by: Chao Yu --- fs/f2fs/super.c | 2 +- 1 file changed,