Files
linux/fs/ext4
Eric Sandeen 8c20871998 ext4: Properly count journal credits for long symlinks
Commit df5e622340 ("ext4: fix deadlock in ext4_symlink() in ENOSPC
conditions") 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
jbd2_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 <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Acked-by: "Theodore Ts'o" <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
2011-08-11 17:23:40 -07:00
..
2011-07-25 14:30:23 -04:00
…
2011-07-25 14:30:23 -04:00
…
2011-06-29 21:44:45 -04:00
2011-08-03 14:57:11 -04:00
2010-05-21 18:31:19 -04:00
2010-05-21 18:31:19 -04:00
2011-05-25 07:41:26 -04:00