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>
Sat, 27 Jan 2018 21:29:57 +0000 (13:29 -0800)
commitad658936ea9d873db1a4c6d7db41b7e82637590a
tree9299fef2f16c996cfe14f3a03fb013bd77c0b534
parentc6e64f1ff11cbc1a897a0efb4b1b1e000d54119e
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