summaryrefslogtreecommitdiff
path: root/fs/sync.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2025-11-03 14:37:28 +1030
committerChristian Brauner <brauner@kernel.org>2025-11-05 12:29:59 +0100
commitfbc22c29963668e8d5eac603ab2b90b844df9787 (patch)
treeba022aa34480f62e6feaed14e7c4c90ed39b976e /fs/sync.c
parent20052f2ef08a74e09a655e70e41abe648b63a9e1 (diff)
downloadlinux-fbc22c29963668e8d5eac603ab2b90b844df9787.tar.gz
linux-fbc22c29963668e8d5eac603ab2b90b844df9787.tar.bz2
linux-fbc22c29963668e8d5eac603ab2b90b844df9787.zip
fs: do not pass a parameter for sync_inodes_one_sb()
The function sync_inodes_one_sb() will always wait for the writeback, and ignore the optional parameter. Explicitly pass NULL as parameter for the call sites inside do_sync_work(). Signed-off-by: Qu Wenruo <wqu@suse.com> Link: https://patch.msgid.link/8079af1c4798cb36887022a8c51547a727c353cf.1762142636.git.wqu@suse.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/sync.c')
-rw-r--r--fs/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sync.c b/fs/sync.c
index 2955cd4c77a3..c80c2e658b09 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -122,10 +122,10 @@ static void do_sync_work(struct work_struct *work)
* Sync twice to reduce the possibility we skipped some inodes / pages
* because they were temporarily locked
*/
- iterate_supers(sync_inodes_one_sb, &nowait);
+ iterate_supers(sync_inodes_one_sb, NULL);
iterate_supers(sync_fs_one_sb, &nowait);
sync_bdevs(false);
- iterate_supers(sync_inodes_one_sb, &nowait);
+ iterate_supers(sync_inodes_one_sb, NULL);
iterate_supers(sync_fs_one_sb, &nowait);
sync_bdevs(false);
printk("Emergency Sync complete\n");