[Devel] [PATCH rh7 v2 1/3] fs/sync: sync_inodes_one_sb doesn't need an argument
Andrey Ryabinin
aryabinin at virtuozzo.com
Tue Feb 2 07:51:54 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 7ac77bb..624c782 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -269,10 +269,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