]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: rationalize xfs_inobt_lookup*
authorChristoph Hellwig <hch@lst.de>
Mon, 31 Aug 2009 23:58:21 +0000 (20:58 -0300)
committerFelix Blyakher <felixb@sgi.com>
Tue, 1 Sep 2009 17:45:39 +0000 (12:45 -0500)
commit0be3fcfed9ea256f65cd5c1aa01d3b9621e12409
tree1538be459d9d37a9daf537885e93a3cf20ee49c8
parent499bcef584a6b4aa4d19085958fe1e4eb328ad81
xfs: rationalize xfs_inobt_lookup*

Currenly we have a xfs_inobt_lookup* variant for each comparism direction,
and all these get all three fields of the inobt records passed, while the
common case is just looking for the inode number and we have only marginally
more callers than xfs_inobt_lookup* variants.

So opencode a direct call to xfs_btree_lookup for the single case where we
need all fields, and replace xfs_inobt_lookup* with a xfs_inobt_looku that
just takes the inode number and the direction for all other callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_ialloc.c
fs/xfs/xfs_ialloc.h
fs/xfs/xfs_itable.c