Skip to content

Commit

Permalink
ext4: add blk_finish_plug in error case of writepages.
Browse files Browse the repository at this point in the history
blk_finish_plug is needed in error case of writepages.

Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
  • Loading branch information
namjaejeon authored and tytso committed Nov 7, 2011
1 parent 2397256 commit 3c1fcb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2270,6 +2270,7 @@ static int ext4_da_writepages(struct address_space *mapping,
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;
}

Expand Down

0 comments on commit 3c1fcb2

Please sign in to comment.