ocfs2: initialize stack_user lvbptr
A message that is not in the archive (sent off-list or not yet received): [email protected]
Joel Becker
Acked-byQuoted 10 lines · David Teigland
commit
3d48397962cdad2aa32df75cfdae980af9bce8ccAuthor: David Teigland <[email protected]> Date: Mon Nov 10 16:16:07 2008 -0600ocfs2: initialize
stack_userlvbptrThe
locking_statedump,ocfs2_dlm_seq_show, reads the lvb on locks where it has not yet been initialized by a lock call.Signed-off-by David Teigland <[email protected]>
Acked-by Joel Becker <[email protected]>
Quoted 15 lines
fs/ocfs2/stack_user.c +3
-0@@ -740,6 +740,9 @@ static int user_dlm_lock_status(union ocfs2_dlm_lksb *lksb)static void *user_dlm_lvb (union ocfs2_dlm_lksb *lksb) { +if (!lksb->lksb_fsdlm.sb_lvbptr) + lksb->lksb_fsdlm.sb_lvbptr = (char *)lksb + +sizeof (struct dlm_lksb );return (void *)(lksb->lksb_fsdlm.sb_lvbptr); }
Signature · 10 lines
"What does it say about a society's priorities when the time you spend in meetings on Monday is greater than the total number of hours you spent sleeping over the weekend?" - Nat Friedman Joel Becker Principal Software Developer Oracle E-mail: joel.becker at oracle.com Phone: (650) 506-8127
Quoted 5 lines · Joel Becker
Quoted 4 lines · David Teigland
commit
3d48397962cdad2aa32df75cfdae980af9bce8ccAuthor: David Teigland <[email protected]> Date: Mon Nov 10 16:16:07 2008 -0600
Quoted 8 lines
Quoted 6 lines
ocfs2: initialize
stack_userlvbptrThe
locking_statedump,ocfs2_dlm_seq_show, reads the lvb on locks where it has not yet been initialized by a lock call.Signed-off-by David Teigland <[email protected]>Acked-by Joel Becker <[email protected]>
Yep, looks good. I'll toss this in ocfs2.git.
--Mark
--
Mark Fasheh