f2fs: add reserved blocks for root user
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 27 Dec 2017 23:05:52 +0000 (15:05 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 16 Jan 2018 23:39:58 +0000 (15:39 -0800)
commit7e65be49ed94f89cbf5add7dadf6e338f0cc6e7b
treeccea427a00e1202c15bfb7e23b4d0162e47fa233
parent2c1905042c8c3da45ec347d5397d1133ff30fce4
f2fs: add reserved blocks for root user

This patch allows root to reserve some blocks via mount option.

"-o reserve_root=N" means N x 4KB-sized blocks for root only.

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