Files
kernel-tenderloin-3.0/fs/ext3
Eric Sandeen 1ae2a2c051 ext3: Properly count journal credits for long symlinks
commit d2db60df1e7eb39cf0f378dfc4dd8813666d46ef upstream.

Commit ae54870a1d ("ext3: Fix lock inversion in ext3_symlink()")
recalculated the number of credits needed for a long symlink, in the
process of splitting it into two transactions.  However, the first
credit calculation under-counted because if selinux is enabled, credits
are needed to create the selinux xattr as well.

Overrunning the reservation will result in an OOPS in
journal_dirty_metadata() due to this assert:

  J_ASSERT_JH(jh, handle->h_buffer_credits > 0);

Fix this by increasing the reservation size.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-15 18:31:42 -07:00
..
2011-03-31 11:26:23 -03:00
2010-03-05 00:20:30 +01:00
2010-09-16 20:52:58 +02:00
2010-07-23 12:50:55 +02:00
2011-03-31 11:26:23 -03:00
2011-05-26 10:01:49 -06:00
2010-05-21 18:31:19 -04:00
2010-05-21 18:31:19 -04:00