From: Qu Wenruo Date: Mon, 3 Nov 2025 04:07:28 +0000 (+1030) Subject: fs: do not pass a parameter for sync_inodes_one_sb() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbc22c29963668e8d5eac603ab2b90b844df9787;p=thirdparty%2Flinux.git 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 Link: https://patch.msgid.link/8079af1c4798cb36887022a8c51547a727c353cf.1762142636.git.wqu@suse.com Signed-off-by: Christian Brauner --- 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");