]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Cache the most recently used resource group in the inode
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 1 Sep 2011 12:31:59 +0000 (13:31 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 27 Oct 2011 08:08:07 +0000 (09:08 +0100)
commitacf41b442412661ae12fdcf09ef0410d222bcd81
treee6d5d64554c587bc322c4b87e699eb02de2a0b22
parenta4ff1b33ecc2f8f0aa48b60a119a7e6f11b056fe
GFS2: Cache the most recently used resource group in the inode

This means that after the initial allocation for any inode, the
last used resource group is cached in the inode for future use.
This drastically reduces the number of lookups of resource
groups in the common case, and this the contention on that
data structure.

The allocation algorithm is the same as previously, except that we
always check to see if the goal block is within the cached rgrp
first before going to the rbtree to look one up.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/aops.c
fs/gfs2/file.c
fs/gfs2/incore.h
fs/gfs2/inode.c
fs/gfs2/quota.c
fs/gfs2/rgrp.c
fs/gfs2/super.c
fs/gfs2/trans.h
fs/gfs2/xattr.c