projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca7d802
)
f2fs: fix to show correct discard_granularity in sysfs
author
Chao Yu
<yuchao0@huawei.com>
Tue, 12 Sep 2017 06:25:35 +0000
(14:25 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 12 Sep 2017 17:02:47 +0000
(10:02 -0700)
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
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/sysfs.c
b/fs/f2fs/sysfs.c
index 962735dc9c63ccb52854f4f09001776ed552f439..e2c258f717cd11214eb9fe9dd7f4bb202ccd6bc4 100644
(file)
--- 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;
}