diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-04-28 08:28:52 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-19 10:58:16 -0400 |
commit | 046f1685bb5211c3dea74fda0198c19171e9abc9 (patch) | |
tree | 3d01a53802173f26cd0475c74344b598f855e8f2 /fs/xfs/xfs_iomap.c | |
parent | 826bf0adce0cddd9c94c2706b63d181dfc5cdaaa (diff) |
xfs: remove iomap_target
Instead of using the iomap_target field in struct xfs_iomap
and the IOMAP_REALTIME flag just use the already existing
xfs_find_bdev_for_inode helper. There's some fallout as we
need to pass the inode in a few more places, which we also
use to sanitize some calling conventions.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_iomap.c')
-rw-r--r-- | fs/xfs/xfs_iomap.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index 2d9bce7fcf85..7327d3f3bf64 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -72,12 +72,6 @@ xfs_imap_to_bmap( | |||
72 | iomapp->iomap_bsize = XFS_FSB_TO_B(mp, imap->br_blockcount); | 72 | iomapp->iomap_bsize = XFS_FSB_TO_B(mp, imap->br_blockcount); |
73 | iomapp->iomap_flags = flags; | 73 | iomapp->iomap_flags = flags; |
74 | 74 | ||
75 | if (XFS_IS_REALTIME_INODE(ip)) { | ||
76 | iomapp->iomap_flags |= IOMAP_REALTIME; | ||
77 | iomapp->iomap_target = mp->m_rtdev_targp; | ||
78 | } else { | ||
79 | iomapp->iomap_target = mp->m_ddev_targp; | ||
80 | } | ||
81 | start_block = imap->br_startblock; | 75 | start_block = imap->br_startblock; |
82 | if (start_block == HOLESTARTBLOCK) { | 76 | if (start_block == HOLESTARTBLOCK) { |
83 | iomapp->iomap_bn = IOMAP_DADDR_NULL; | 77 | iomapp->iomap_bn = IOMAP_DADDR_NULL; |