ocfs2_dlm: Cookies in locks not being printed correctly in error messages
authorKurt Hackel <kurt.hackel@oracle.com>
Wed, 17 Jan 2007 23:11:36 +0000 (15:11 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 7 Feb 2007 20:06:24 +0000 (12:06 -0800)
commit74aa25856c693d20a886cdb31a004aaca411d135
treeea833f164771279a3141668e537e316c21027387
parent90aaaf1c235a70daee04e897e9501415b766de69
ocfs2_dlm: Cookies in locks not being printed correctly in error messages

The dlm encodes the node number and a sequence number in the lock cookie.
It also stores the cookie in the lockres in the big endian format to avoid
swapping 8 bytes on each lock request. The bug here was that it was assuming
the cookie to be in the cpu format when decoding it for printing the error
message. This patch swaps the bytes before the print.

Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/dlm/dlmast.c
fs/ocfs2/dlm/dlmconvert.c
fs/ocfs2/dlm/dlmdebug.c
fs/ocfs2/dlm/dlmrecovery.c
fs/ocfs2/dlm/dlmunlock.c