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)
commitdaeb433e42de97c79622f58681972200eec1d8da
treeb0f24b7eb9f345be975c63af9513c275f777da1b
parentd871cd046f1a5ae816c836cf114d57288bcb00b2
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