diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-04-09 10:25:23 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-05-30 08:58:59 -0700 |
commit | 377224c471188a2c9a838f919160546f4e842ab8 (patch) | |
tree | 2568c672181a34705a588d3ba1700a444e19ccfa /fs/f2fs/sysfs.c | |
parent | 8bb4f2535cf7c3e3aeaed8b3c7c7a116844c41db (diff) | |
download | linux-377224c471188a2c9a838f919160546f4e842ab8.tar.bz2 |
f2fs: don't split checkpoint in fstrim
Now, we issue discard asynchronously in separated thread instead of in
checkpoint, after that, we won't encounter long latency in checkpoint
due to huge number of synchronous discard command handling, so, we don't
need to split checkpoint to do trim in batch, merge it and obsolete
related sysfs entry.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/sysfs.c')
-rw-r--r-- | fs/f2fs/sysfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index f33a56d6e6dd..2c53de9251be 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -245,6 +245,9 @@ out: return count; } + if (!strcmp(a->attr.name, "trim_sections")) + return -EINVAL; + *ui = t; if (!strcmp(a->attr.name, "iostat_enable") && *ui == 0) |