[f2fs-dev] [PATCH] f2fs: fix some cases with reserved_blocks

2017-08-07 Thread Yunlong Song
Signed-off-by: Yunlong Song --- fs/f2fs/recovery.c | 3 ++- fs/f2fs/super.c| 9 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index a3d0261..e288319 100644 --- a/fs/f2fs/recovery.c +++

Re: [f2fs-dev] [PATCH 2/2] f2fs: introduce gc_urgent mode for background GC

2017-08-07 Thread Jaegeuk Kim
Hi Chao, On 08/08, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/8/8 9:42, Jaegeuk Kim wrote: > > This patch adds a sysfs entry to control urgent mode for background GC. > > If this is set, background GC thread conducts GC with gc_urgent_sleep_time > > all the time. > > Good idea. > > If we want to

Re: [f2fs-dev] [PATCH 2/2] f2fs: introduce gc_urgent mode for background GC

2017-08-07 Thread Chao Yu
Hi Jaegeuk, On 2017/8/8 9:42, Jaegeuk Kim wrote: > This patch adds a sysfs entry to control urgent mode for background GC. > If this is set, background GC thread conducts GC with gc_urgent_sleep_time > all the time. Good idea. If we want to add more gc policy, current approach is not friendly

Re: [f2fs-dev] [PATCH 2/2 v2] f2fs: introduce gc_urgent mode for background GC

2017-08-07 Thread Jaegeuk Kim
Change log from v1: - update Documentation. This patch adds a sysfs entry to control urgent mode for background GC. If this is set, background GC thread conducts GC with gc_urgent_sleep_time all the time. Signed-off-by: Jaegeuk Kim ---

Re: [f2fs-dev] [PATCH 1/2] f2fs: use IPU for cold files

2017-08-07 Thread Chao Yu
On 2017/8/8 9:42, Jaegeuk Kim wrote: > We expect cold files write data sequentially, but sometimes some of small data > can be updated, which incurs fragmentation. > Let's avoid that. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, > --- >

Re: [f2fs-dev] [f2fs:dev-test 31/31] fs//f2fs/super.c:1264:9: error: 's_qf_names' undeclared

2017-08-07 Thread Chao Yu
Sorry, have fixed and resent. Thanks, On 2017/8/8 10:40, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git > dev-test > head: aced2c62005622672a7b96135389f45766f4ed1a > commit: aced2c62005622672a7b96135389f45766f4ed1a [31/31] f2fs: support >

[f2fs-dev] [PATCH v3 RESEND] f2fs: support journalled quota

2017-08-07 Thread Chao Yu
This patch supports to enable f2fs to accept quota information through mount option: - {usr,grp,prj}jquota= - jqfmt= Then, in ->mount flow, we can recover quota file during log replaying, by this, journelled quota can be supported. Signed-off-by: Chao Yu Signed-off-by:

Re: [f2fs-dev] [f2fs:dev-test 31/31] fs//f2fs/super.c:1264:9: error: 's_qf_names' undeclared

2017-08-07 Thread Jaegeuk Kim
I've uploaded a fixed one in dev-test. Chao, could you check that? (I just added #ifdef.) Thanks, On 08/08, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git > dev-test > head: aced2c62005622672a7b96135389f45766f4ed1a > commit:

[f2fs-dev] [PATCH 1/2] f2fs: use IPU for cold files

2017-08-07 Thread Jaegeuk Kim
We expect cold files write data sequentially, but sometimes some of small data can be updated, which incurs fragmentation. Let's avoid that. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.h | 4 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/segment.h

[f2fs-dev] [PATCH 2/2] f2fs: introduce gc_urgent mode for background GC

2017-08-07 Thread Jaegeuk Kim
This patch adds a sysfs entry to control urgent mode for background GC. If this is set, background GC thread conducts GC with gc_urgent_sleep_time all the time. Signed-off-by: Jaegeuk Kim --- Documentation/ABI/testing/sysfs-fs-f2fs | 12 fs/f2fs/gc.c

[f2fs-dev] [PATCH] f2fs: fix potential overflow when adjusting GC cycle

2017-08-07 Thread Chao Yu
From: Chao Yu While comparing signed and unsigned variables, compiler will converts the signed value to unsigned one, due to this reason, {in,de}crease_sleep_time may return overflowed result. Signed-off-by: Chao Yu --- fs/f2fs/gc.c| 2

[f2fs-dev] [PATCH v4] f2fs: introduce discard_granularity sysfs entry

2017-08-07 Thread Chao Yu
From: Chao Yu Commit d618ebaf0aa8 ("f2fs: enable small discard by default") enables f2fs to issue 4K size discard in real-time discard mode. However, issuing smaller discard may cost more lifetime but releasing less free space in flash device. Since f2fs has ability of

Re: [f2fs-dev] [PATCH v2] f2fs: support journelled quota

2017-08-07 Thread Chao Yu
Hi Jaegeuk, On 2017/8/1 5:04, Jaegeuk Kim wrote: > On 07/30, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2017/7/30 15:35, Jaegeuk Kim wrote: >>> Hi Chao, >>> >>> When I add this patch, xfstests/fsstress are giving some weird kernel hang >>> or panic now. Without only this patch, I can't see any

[f2fs-dev] [PATCH] f2fs: avoid unneeded sync on quota file

2017-08-07 Thread Chao Yu
We only need to sync quota file with appointed quota type instead of all types in f2fs_quota_{on,off}. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index

[f2fs-dev] [PATCH v3] f2fs: support journalled quota

2017-08-07 Thread Chao Yu
This patch supports to enable f2fs to accept quota information through mount option: - {usr,grp,prj}jquota= - jqfmt= Then, in ->mount flow, we can recover quota file during log replaying, by this, journelled quota can be supported. Signed-off-by: Chao Yu --- v3: - add