https://bugzilla.novell.com/show_bug.cgi?id=378095
User jeffm@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=378095#c13
--- Comment #13 from Jeff Mahoney 2008-06-02 08:59:36 MDT ---
Created an attachment (id=219541)
--> (https://bugzilla.novell.com/attachment.cgi?id=219541)
[PATCH] reiserfs: Use list_del_init in use_preallocated_list_if_available
__discard_prealloc() calls list_del on ei->i_prealloc_list regardless of
the state of ei->i_prealloc_count. The rest of the action in that function
is safe regardless of if the list is empty or not.
If the list hasn't been used, then i_prealloc_list will be just initialized.
If it has, and use_preallocated_list_if_available() has been called, and
the prealloc list has been depleted, then the list entry will be poisoned.
This patch uses list_del_init so the list_head is initialized and we don't
oops on the poisoned value.
I'm committing this patch to CVS now. Can you verify that it fixes the problem
with the next KOTD?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.