diff options
| author | Chao Yu <yuchao0@huawei.com> | 2017-09-12 14:25:35 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-10-04 15:39:33 +0200 |
| commit | 9a6c64e021f46c6b68cf11b574d30638bd61f914 (patch) | |
| tree | fb8981fbebc65201a5ea13c7f2ba1fd9dd7ec41f | |
| parent | 9b64ae8c77addf82ae4fcb58bdc38dc02dbfb3b0 (diff) | |
| download | android_kernel_m2note-9a6c64e021f46c6b68cf11b574d30638bd61f914.tar.gz | |
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 6f17abcbc..06fda7cc7 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, dcc->pend_list_tag[i] &= (~P_ACTIVE); } mutex_unlock(&dcc->cmd_lock); + + *ui = t; return count; } |
