f2fs: expose extension_list sysfs entry
authorChao Yu <yuchao0@huawei.com>
Mon, 26 Feb 2018 14:04:13 +0000 (22:04 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 11:11:25 +0000 (04:11 -0700)
commit882d0e094488c085f1eb3248c7b5f3dc619c0da9
tree12cb97558310674170c13f7491026c2e5699c1d8
parent52320a2a28be28db7b49fb412ce704fe86eea8c5
f2fs: expose extension_list sysfs entry

This patch adds a sysfs entry 'extension_list' to support
query/add/del item in extension list.

Query:
cat /sys/fs/f2fs/<device>/extension_list

Add:
echo 'extension' > /sys/fs/f2fs/<device>/extension_list

Del:
echo '!extension' > /sys/fs/f2fs/<device>/extension_list

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/file.c
fs/f2fs/namei.c
fs/f2fs/super.c
fs/f2fs/sysfs.c
include/linux/f2fs_fs.h