]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: introduce reserved_blocks in sysfs
authorChao Yu <yuchao0@huawei.com>
Mon, 26 Jun 2017 08:24:41 +0000 (16:24 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 7 Jul 2017 17:34:41 +0000 (10:34 -0700)
commit56792d73ed647c5cffc5494ae6e399d23454f206
treeb0f24b7eb9f345be975c63af9513c275f777da1b
parent449e4dd72978d1e9ced398ccce6c238b5e9736ec
f2fs: introduce reserved_blocks in sysfs

In this patch, we add a new sysfs interface, with it, we can control
number of reserved blocks in system which could not be used by user,
it enable f2fs to let user to configure for adjusting over-provision
ratio dynamically instead of changing it by mkfs.

So we can expect it will help to reserve more free space for relieving
GC in both filesystem and flash device.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/f2fs.h
fs/f2fs/super.c
fs/f2fs/sysfs.c