Re: [PATCH] f2fs: fix wrong bfree and bavail

2017-09-05 Thread Chao Yu
On 2017/9/6 11:10, Jaegeuk Kim wrote: > On 09/06, Chao Yu wrote: >> On 2017/9/6 5:06, Jaegeuk Kim wrote: >>> This patch fixes bavail and bfree finally. >>> >>> longf_bfree;/* free blocks in fs */ >>> longf_bavail; /* free blocks avail to non-superuser */ >>> >>> So, bfree represents a

Re: [PATCH] f2fs: fix wrong bfree and bavail

2017-09-05 Thread Jaegeuk Kim
On 09/06, Chao Yu wrote: > On 2017/9/6 5:06, Jaegeuk Kim wrote: > > This patch fixes bavail and bfree finally. > > > > longf_bfree;/* free blocks in fs */ > > longf_bavail; /* free blocks avail to non-superuser */ > > > > So, bfree represents all the reserved blocks, while bavail do

Re: [PATCH] f2fs: fix wrong bfree and bavail

2017-09-05 Thread Chao Yu
On 2017/9/6 5:06, Jaegeuk Kim wrote: > This patch fixes bavail and bfree finally. > > longf_bfree;/* free blocks in fs */ > longf_bavail; /* free blocks avail to non-superuser */ > > So, bfree represents all the reserved blocks, while bavail does the space only > visible to normal u

Re: [PATCH] f2fs: fix wrong bfree and bavail

2017-09-05 Thread Jaegeuk Kim
On 09/05, Andreas Dilger wrote: > On Sep 5, 2017, at 3:06 PM, Jaegeuk Kim wrote: > > > > This patch fixes bavail and bfree finally. > > > > longf_bfree;/* free blocks in fs */ > > longf_bavail; /* free blocks avail to non-superuser */ > > > > So, bfree represents all the reserved

Re: [PATCH] f2fs: fix wrong bfree and bavail

2017-09-05 Thread Andreas Dilger
On Sep 5, 2017, at 3:06 PM, Jaegeuk Kim wrote: > > This patch fixes bavail and bfree finally. > > longf_bfree;/* free blocks in fs */ > longf_bavail; /* free blocks avail to non-superuser */ > > So, bfree represents all the reserved blocks, while bavail does the space only > visib

[PATCH] f2fs: fix wrong bfree and bavail

2017-09-05 Thread Jaegeuk Kim
This patch fixes bavail and bfree finally. longf_bfree;/* free blocks in fs */ longf_bavail; /* free blocks avail to non-superuser */ So, bfree represents all the reserved blocks, while bavail does the space only visible to normal user. Fix: 3e6d0b4d9c1c ("f2fs: fix incorrect f_bfr