From: Namjae Jeon Date: Mon, 7 Nov 2011 16:01:13 +0000 (-0500) Subject: ext4: add blk_finish_plug in error case of writepages. X-Git-Tag: firefly_0821_release~3680^2~4068^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3c1fcb2c24519febd7ca9cf292fa5bdf513b601f;p=firefly-linux-kernel-4.4.55.git ext4: add blk_finish_plug in error case of writepages. blk_finish_plug is needed in error case of writepages. Signed-off-by: Namjae Jeon Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index cc5a6da030a1..18b262bb6a4a 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -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; }