ext4: add blk_finish_plug in error case of writepages.
authorNamjae Jeon <linkinjeon@gmail.com>
Mon, 7 Nov 2011 16:01:13 +0000 (11:01 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 7 Nov 2011 16:01:13 +0000 (11:01 -0500)
blk_finish_plug is needed in error case of writepages.

Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c

index cc5a6da030a149f31ea61cd35b9803782a4a57a7..18b262bb6a4a1a8d692cfb2b95d2496ebbfd69b9 100644 (file)
@@ -2270,6 +2270,7 @@ retry:
                        ext4_msg(inode->i_sb, KERN_CRIT, "%s: jbd2_start: "
                               "%ld pages, ino %lu; err %d", __func__,
                                wbc->nr_to_write, inode->i_ino, ret);
+                       blk_finish_plug(&plug);
                        goto out_writepages;
                }