sync_inodes_one_sb() doesn't have an argument, so passing
pointer to nowait is completely useless.
No functional changes here.

Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
 fs/sync.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/sync.c b/fs/sync.c
index cb2c7c2..ba033c1 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -177,10 +177,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);
        iterate_bdevs(fdatawrite_one_bdev, NULL);
-       iterate_supers(sync_inodes_one_sb, &nowait);
+       iterate_supers(sync_inodes_one_sb, NULL);
        iterate_supers(sync_fs_one_sb, &nowait);
        iterate_bdevs(fdatawrite_one_bdev, NULL);
        printk("Emergency Sync complete\n");
-- 
2.4.10

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to