]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ocfs2: Alloc at least a page for the DLM hash
authorJoel Becker <Joel.Becker@oracle.com>
Fri, 17 Mar 2006 01:40:37 +0000 (17:40 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Mon, 26 Jun 2006 21:42:42 +0000 (14:42 -0700)
commitd901ff07c3accacab8f65e13ed0d026fa19ae9ea
tree8806647e8f7a6525539d0a7ecdbe8f375b8f91a3
parent3348a9f470c5947fcb8789456d5af7b68f17e012
[PATCH] ocfs2: Alloc at least a page for the DLM hash

The OCFS2 DLM allocates a number of pages for a hash to lookup locks.
There was a bug where a PAGE_SIZE bigger than the hash size (eg, 64K
pages) would result in zero pages allocated.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/dlm/dlmcommon.h
fs/ocfs2/dlm/dlmdomain.c