[XFS] stop using xfs_itobp in xfs_bulkstat
authorChristoph Hellwig <hch@infradead.org>
Thu, 30 Oct 2008 07:04:13 +0000 (18:04 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 30 Oct 2008 07:04:13 +0000 (18:04 +1100)
commitc679eef0520eb3c2c731fce505e61b8ef9469aac
tree6a3cdcb882282d10dac7bb45e194fc473dd3940d
parent455486b9ccdd0a1d7432a03302f549b1c917c181
[XFS] stop using xfs_itobp in xfs_bulkstat

xfs_bulkstat only wants the dinode, offset and buffer from a given inode
number. Instead of using xfs_itobp on a fake inode which is complicated
and currently leads to leaks of the security data just use xfs_inotobp
which is designed to do exactly the kind of lookup xfs_bulkstat wants. The
only thing that's missing in xfs_inotobp is a flags paramter that let's us
pass down XFS_IMAP_BULKSTAT, but that can easily added.

SGI-PV: 987246

SGI-Modid: xfs-linux-melb:xfs-kern:32397a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <david@fromorbit.com>
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_itable.c