projects
/
GitHub
/
LineageOS
/
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:
ae93dca
)
f2fs: stop issuing discard if fs is readonly
author
Chao Yu
<yuchao0@huawei.com>
Thu, 25 Jan 2018 10:57:27 +0000
(18:57 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:30:43 +0000
(13:30 -0800)
If filesystem is readonly, stop to issue discard in daemon.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/segment.c
b/fs/f2fs/segment.c
index 9c09e2c967059fd45547f603da6ed9a3f092c35a..ca1f567f701af68cd746060b6b5921fc56fa3ea4 100644
(file)
--- a/
fs/f2fs/segment.c
+++ b/
fs/f2fs/segment.c
@@
-1406,6
+1406,8
@@
static int issue_discard_thread(void *data)
msecs_to_jiffies(wait_ms));
if (try_to_freeze())
continue;
+ if (f2fs_readonly(sbi->sb))
+ continue;
if (kthread_should_stop())
return 0;