aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/sysfs.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-04-09 10:25:23 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-05-30 08:58:59 -0700
commit377224c471188a2c9a838f919160546f4e842ab8 (patch)
tree2568c672181a34705a588d3ba1700a444e19ccfa /fs/f2fs/sysfs.c
parentf2fs: issue discard commands proactively in high fs utilization (diff)
downloadlinux-dev-377224c471188a2c9a838f919160546f4e842ab8.tar.xz
linux-dev-377224c471188a2c9a838f919160546f4e842ab8.zip
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.c3
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)