f2fs: fix to show correct discard_granularity in sysfs
authorChao Yu <yuchao0@huawei.com>
Tue, 12 Sep 2017 06:25:35 +0000 (14:25 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 Sep 2017 17:02:47 +0000 (10:02 -0700)
commit80647e5f4c728ecea7d9190c6e7163755ff6835c
treeda365d03ecbdbe2dd83b6aec1368259fbc9b89fa
parentca7d802a7d8ee4c47dce9be86ef4b27e587086bb
f2fs: fix to show correct discard_granularity in sysfs

Fix below incorrect display when reading discard_granularity sysfs node.

$ cat /sys/fs/f2fs/<device>/discard_granularity
$ 16
$ echo 32 > /sys/fs/f2fs/<device>/discard_granularity
$ cat /sys/fs/f2fs/<device>/discard_granularity
$ 16

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