Message ID | 1426016724-23912-2-git-send-email-jbacik@fb.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index e907052..a9ff2b7 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -659,7 +659,9 @@ static long writeback_sb_inodes(struct super_block *sb, unsigned long start_time = jiffies; long write_chunk; long wrote = 0; /* count both pages and inodes */ + struct blk_plug plug; + blk_start_plug(&plug); while (!list_empty(&wb->b_io)) { struct inode *inode = wb_inode(wb->b_io.prev); @@ -756,6 +758,7 @@ static long writeback_sb_inodes(struct super_block *sb, break; } } + blk_finish_plug(&plug); return wrote; }