]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Local alloc window size changeable via mount option
authorSunil Mushran <sunil.mushran@oracle.com>
Thu, 20 Dec 2007 22:58:11 +0000 (14:58 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 25 Jan 2008 23:05:43 +0000 (15:05 -0800)
commit7c000e22e25905dcd0816559ff0ed9b2daba2c81
tree7620954c7a364c41306a3becc0046dd1e235158f
parent88f410501fe84cebf8af9c4632ae398fba99bc88
ocfs2: Local alloc window size changeable via mount option

Local alloc is a performance optimization in ocfs2 in which a node
takes a window of bits from the global bitmap and then uses that for
all small local allocations. This window size is fixed to 8MB currently.
This patch allows users to specify the window size in MB including
disabling it by passing in 0. If the number specified is too large,
the fs will use the default value of 8MB.

mount -o localalloc=X /dev/sdX /mntpoint

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Documentation/filesystems/ocfs2.txt
fs/ocfs2/localalloc.c
fs/ocfs2/ocfs2.h
fs/ocfs2/ocfs2_fs.h
fs/ocfs2/suballoc.c
fs/ocfs2/super.c