summaryrefslogtreecommitdiff
path: root/fs/jbd2
diff options
context:
space:
mode:
authorEric Gouriou <egouriou@google.com>2011-05-22 21:33:00 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-05-22 21:33:00 -0400
commitf6d2f6b327ceef5c689581529a852dc6ec3b74a6 (patch)
tree9ae24dbb3787f596687954322c55e73570d6ed88 /fs/jbd2
parent77f4135f2a219a2127be6cc1208c42e6175b11dd (diff)
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 <egouriou@google.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2')
0 files changed, 0 insertions, 0 deletions