From: Jan Kara Date: Mon, 8 Jun 2015 16:40:39 +0000 (-0400) Subject: jbd2: simplify error path on allocation failure in do_get_write_access() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~122^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d012aa5965160a39b24a4b41139a322f681cdfd7;p=pandora-kernel.git jbd2: simplify error path on allocation failure in do_get_write_access() We were acquiring bh_state_lock when allocation of buffer failed in do_get_write_access() only to be able to jump to a label that releases the lock and does all other checks that don't make sense for this error path. Just jump into the right label instead. Signed-off-by: Jan Kara Signed-off-by: Theodore Ts'o --- Reading git-diff-tree failed