]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Abstract out node number queries.
authorJoel Becker <joel.becker@oracle.com>
Wed, 30 Jan 2008 23:38:24 +0000 (15:38 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:04 +0000 (08:56 -0700)
commit3013ea07b87d49d820b42c66d1b7aa8369aac08d
treeb50e358686ca63789af4af07526e0d21f2806bfb
parentd5d9fa5b770c838c4d7f85d8b2d95c810c60b90a
ocfs2: Abstract out node number queries.

ocfs2 asks the cluster stack for the local node's node number for two
reasons; to fill the slot map and to print it. While the slot map isn't
necessary for userspace cluster stacks, the printing is very nice for
debugging. Thus we add ocfs2_cluster_this_node() as a generic API to get
this value. It is anticipated that the slot map will not be used under a
userspace cluster stack, so validity checks of the node num only need to
exist in the slot map code. Otherwise, it just gets used and printed as an
opaque value.

[ Fixed up some "int" versus "unsigned int" issues and made osb->node_num
  truly opaque. --Mark ]

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/ocfs2.h
fs/ocfs2/slot_map.c
fs/ocfs2/stackglue.c
fs/ocfs2/stackglue.h
fs/ocfs2/super.c