[Devel] [PATCH rh7 2/3] fs/sync: sync_inodes_one_sb doesn't need an argument

Andrey Ryabinin aryabinin at virtuozzo.com
Fri Jan 29 02:12:49 PST 2016


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 <aryabinin at 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



More information about the Devel mailing list