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:
9bb02c3
)
f2fs: give time to flush dirty pages for checkpoint
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 12 Apr 2017 02:15:33 +0000
(19:15 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 12 Apr 2017 19:57:07 +0000
(12:57 -0700)
If all the threads are waiting for checkpoint, we have no chance to flush
required dirty pages.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/checkpoint.c
b/fs/f2fs/checkpoint.c
index 9db92990f193355fc330c2b24295a064eecb4aad..800be94f8cb3a629c84663275658871a1b6ca853 100644
(file)
--- a/
fs/f2fs/checkpoint.c
+++ b/
fs/f2fs/checkpoint.c
@@
-980,6
+980,7
@@
retry_flush_dents:
err = sync_dirty_inodes(sbi, DIR_INODE);
if (err)
goto out;
+ cond_resched();
goto retry_flush_dents;
}
@@
-995,6
+996,7
@@
retry_flush_dents:
err = f2fs_sync_inode_meta(sbi);
if (err)
goto out;
+ cond_resched();
goto retry_flush_dents;
}
@@
-1009,6
+1011,7
@@
retry_flush_nodes:
f2fs_unlock_all(sbi);
goto out;
}
+ cond_resched();
goto retry_flush_nodes;
}