diff options
| author | Chao Yu <yuchao0@huawei.com> | 2017-09-12 02:25:35 -0400 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-09-12 13:02:47 -0400 |
| commit | 80647e5f4c728ecea7d9190c6e7163755ff6835c (patch) | |
| tree | da365d03ecbdbe2dd83b6aec1368259fbc9b89fa | |
| parent | ca7d802a7d8ee4c47dce9be86ef4b27e587086bb (diff) | |
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>
| -rw-r--r-- | fs/f2fs/sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index 962735dc9c63..e2c258f717cd 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c | |||
| @@ -170,6 +170,8 @@ static ssize_t f2fs_sbi_store(struct f2fs_attr *a, | |||
| 170 | dcc->pend_list_tag[i] &= (~P_ACTIVE); | 170 | dcc->pend_list_tag[i] &= (~P_ACTIVE); |
| 171 | } | 171 | } |
| 172 | mutex_unlock(&dcc->cmd_lock); | 172 | mutex_unlock(&dcc->cmd_lock); |
| 173 | |||
| 174 | *ui = t; | ||
| 173 | return count; | 175 | return count; |
| 174 | } | 176 | } |
| 175 | 177 | ||
