]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs: do not pass a parameter for sync_inodes_one_sb()
authorQu Wenruo <wqu@suse.com>
Mon, 3 Nov 2025 04:07:28 +0000 (14:37 +1030)
committerChristian Brauner <brauner@kernel.org>
Wed, 5 Nov 2025 11:29:59 +0000 (12:29 +0100)
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>
fs/sync.c

index 2955cd4c77a3edf3a58ed67dd6c62786b713c1b2..c80c2e658b0992571490c92b947ab279b47cf5f6 100644 (file)
--- 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");