From: Eric Gouriou Date: Mon, 23 May 2011 01:33:00 +0000 (-0400) Subject: ext4: fix unbalanced up_write() in ext4_ext_truncate() error path X-Git-Tag: v3.0-rc1~140^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6d2f6b327ceef5c689581529a852dc6ec3b74a6;p=pandora-kernel.git ext4: fix unbalanced up_write() in ext4_ext_truncate() error path ext4_ext_truncate() should not invoke up_write(&EXT4_I(inode)->i_data_sem) when ext4_orphan_add() returns an error, as it hasn't performed a down_write() yet. This trivial patch fixes this by moving the up_write() invocation above the out_stop label. Signed-off-by: Eric Gouriou Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed