]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 27 Oct 2011 08:08:10 +0000 (09:08 +0100)
commit39b24530612b5fecf06a1673caee24b72ad92565
tree0e7239589803bfa00d7bee8a9ca4f1989724eec0
parentb855c2a0c924fcf7830c451dd4da1c6a1b695dd6
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