OSDN Git Service

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>
Thu, 13 Jul 2017 23:57:36 +0000 (16:57 -0700)
commitea9b9467fabf37b393eca00668cf9e2f8fce1ee8
treed299e96df199a4bc00be0410b12c75f38555fc9d
parent99ad6f555ab7f7ca7c337521dfe0c66a703dbdff
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>
 Conflicts:
Documentation/ABI/testing/sysfs-fs-f2fs
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/f2fs.h
fs/f2fs/super.c
fs/f2fs/sysfs.c