ocfs2: Change some lock status member in ocfs2_lock_res to char.
authorTao Ma <tao.ma@oracle.com>
Sat, 13 Nov 2010 08:22:02 +0000 (16:22 +0800)
committerJoel Becker <joel.becker@oracle.com>
Sat, 13 Nov 2010 11:15:08 +0000 (03:15 -0800)
commit1c66b360fe26204e2aa14e45086b4a6b8890b1a2
treed2608809e0985e4aff7bdc9f5673a8c39d7eb916
parent2d3b07c07b39c4b7d9b6641052a02d996cd5d87c
ocfs2: Change some lock status member in ocfs2_lock_res to char.

Commit 83fd9c7 changes l_level, l_requested and l_blocking of
ocfs2_lock_res from int to unsigned char. But actually it is
initially as -1(ocfs2_lock_res_init_common) which
correspoding to 255 for unsigned char. So the whole dlm lock
mechanism doesn't work now which means a disaster to ocfs2.

Cc: Goldwyn Rodrigues <rgoldwyn@suse.de>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/ocfs2.h