xfs: simplify and remove xfs_ireclaim
authorDave Chinner <dchinner@redhat.com>
Tue, 20 Jul 2010 07:53:25 +0000 (17:53 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 26 Jul 2010 18:16:48 +0000 (13:16 -0500)
commit2f11feabb19748c0ffa2eb82d438e8a91b9f6ea0
tree02564de802ac344b7c2048ed10438443356bfce1
parentec53d1dbb3ca960e7b552397613358ba1dbd12bd
xfs: simplify and remove xfs_ireclaim

xfs_ireclaim has to get and put te pag structure because it is only
called with the inode to reclaim. The one caller of this function
already has a reference on the pag and a pointer to is, so move the
radix tree delete to the caller and remove xfs_ireclaim completely.
This avoids a xfs_perag_get/put on every inode being reclaimed.

The overhead was noticed in a bug report at:

https://bugzilla.kernel.org/show_bug.cgi?id=16348

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/linux-2.6/xfs_sync.c
fs/xfs/xfs_iget.c
fs/xfs/xfs_inode.h