aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@gmail.com>2011-11-07 11:01:13 -0500
committerTheodore Ts'o <tytso@mit.edu>2011-11-07 11:01:13 -0500
commit3c1fcb2c24519febd7ca9cf292fa5bdf513b601f (patch)
tree9be412cacdd7778fc5826efdda0d135570929991 /fs
parentext4: Remove kernel_lock annotations (diff)
downloadlinux-dev-3c1fcb2c24519febd7ca9cf292fa5bdf513b601f.tar.xz
linux-dev-3c1fcb2c24519febd7ca9cf292fa5bdf513b601f.zip
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 <linkinjeon@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/inode.c1
1 files changed, 1 insertions, 0 deletions
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;
}