Skip to content
Commit e2555fde authored by Jan Kara's avatar Jan Kara Committed by Theodore Ts'o
Browse files

jbd,jbd2: fix oops in jbd2_journal_put_journal_head()



Commit ae4647fb (jbd2: reduce journal_head size) introduced a
regression where we occasionally hit panic in
jbd2_journal_put_journal_head() because of wrong b_jcount. The bug is
caused by gcc making 64-bit access to 32-bit bitfield and thus
clobbering b_jcount.

At least for now, those 8 bytes saved in struct journal_head are not
worth the trouble with gcc bitfield handling so revert that part of
the patch.

Reported-by: default avatarEUNBONG SONG <eunb.song@samsung.com>
Reported-by: default avatarTony Luck <tony.luck@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent a549984b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment