ext4: fix error paths in swap_inode_boot_loader()
authorZheng Liu <wenqing.lz@taobao.com>
Wed, 12 Feb 2014 16:48:31 +0000 (11:48 -0500)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:39 +0000 (17:13 +0100)
commit0e2747f274ec5dbb37ef7c8a14cdd93fa2364bdf
treef0400930132f1d3c6b0f3f85a1b247afc40874e4
parent2dcfeb29bfc13fab078b8dcba336cdbd19293ffb
ext4: fix error paths in swap_inode_boot_loader()

commit 30d29b119ef01776e0a301444ab24defe8d8bef3 upstream.

In swap_inode_boot_loader() we forgot to release ->i_mutex and resume
unlocked dio for inode and inode_bl if there is an error starting the
journal handle.  This commit fixes this issue.

Reported-by: Ahmed Tamrawi <ahmedtamrawi@gmail.com>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Dr. Tilmann Bubeck <t.bubeck@reinform.de>
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/ext4/ioctl.c