f2fs: support soft block reservation
authorYunlong Song <yunlong.song@huawei.com>
Fri, 27 Oct 2017 12:45:05 +0000 (20:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 6 Nov 2017 00:41:52 +0000 (16:41 -0800)
commit80d421450187e894af841849d66614a0456912f9
treec888ca0009b4c43812a5c83f1e77473b585bf951
parentbf9c14278545a878b1c1982260123330b5dc05e4
f2fs: support soft block reservation

It supports to extend reserved_blocks sysfs interface to be soft
threshold, which allows user configure it exceeding current available
user space. This patch also introduces a new sysfs interface called
current_reserved_blocks, which shows the current blocks that have
already been reserved.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
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