[XFS] kill BMAPI_DEVICE
authorChristoph Hellwig <hch@infradead.org>
Fri, 14 Sep 2007 05:23:17 +0000 (15:23 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 05:43:35 +0000 (16:43 +1100)
commit6214ed4461f1ad8aeec41857c73d58afb31be335
treecd01b3d54a4156ee9315ea88ef7fea26fb40acfb
parentcf441eeb79c32471379f0a4d97feaef691432a03
[XFS] kill BMAPI_DEVICE

There is no reason to go into the iomap machinery just to get the right
block device for an inode. Instead look at the realtime flag in the inode
and grab the right device from the mount structure.

I created a new helper, xfs_find_bdev_for_inode instead of opencoding it
because I plan to use it in other places in the future.

SGI-PV: 970240
SGI-Modid: xfs-linux-melb:xfs-kern:29680a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Donald Douwsma <donaldd@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/linux-2.6/xfs_aops.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.h