]> git.ipfire.org Git - people/ms/linux.git/commit - fs/gfs2/rgrp.h
GFS2: Use cached rgrp in gfs2_rlist_add()
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 2 Sep 2011 15:08:09 +0000 (16:08 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 21 Oct 2011 11:39:39 +0000 (12:39 +0100)
commit70b0c3656f12964a6dac104214c904c66e626058
treef58b4b67d6343d5b48c6335fb93ccbe6ed61e1c0
parentd56fa8a1c17b68274349fc852f634af99c0c4671
GFS2: Use cached rgrp in gfs2_rlist_add()

Each block which is deallocated, requires a call to gfs2_rlist_add()
and each of those calls was calling gfs2_blk2rgrpd() in order to
figure out which rgrp the block belonged in. This can be speeded up
by making use of the rgrp cached in the inode. We also reset this
cached rgrp in case the block has changed rgrp. This should provide
a big reduction in gfs2_blk2rgrpd() calls during deallocation.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c
fs/gfs2/dir.c
fs/gfs2/rgrp.c
fs/gfs2/rgrp.h
fs/gfs2/xattr.c