aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_iomap.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-04-28 08:28:54 -0400
committerAlex Elder <aelder@sgi.com>2010-05-19 10:58:17 -0400
commit8699bb0a480193e62d5ccb9c86e2c26b407090a8 (patch)
treeaabcc9cd0800cf5c0d0605d46a104ed825f90db6 /fs/xfs/xfs_iomap.c
parent9563b3d8998c78d5b7e718b546d5f68037c494fe (diff)
xfs: report iomap_offset and iomap_bsize in block base
Report the iomap_offset and iomap_bsize fields of struct xfs_iomap in terms of fsblocks instead of in terms of disk blocks. Shift the byte conversions into the callers temporarily, but they will disappear or get cleaned up later. 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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c
index c6b409e0f013..49b5ad22a9d8 100644
--- a/fs/xfs/xfs_iomap.c
+++ b/fs/xfs/xfs_iomap.c
@@ -64,11 +64,10 @@ xfs_imap_to_bmap(
64 int imaps, /* Number of imap entries */ 64 int imaps, /* Number of imap entries */
65 int flags) 65 int flags)
66{ 66{
67 xfs_mount_t *mp = ip->i_mount;
68 xfs_fsblock_t start_block; 67 xfs_fsblock_t start_block;
69 68
70 iomapp->iomap_offset = XFS_FSB_TO_B(mp, imap->br_startoff); 69 iomapp->iomap_offset = imap->br_startoff;
71 iomapp->iomap_bsize = XFS_FSB_TO_B(mp, imap->br_blockcount); 70 iomapp->iomap_bsize = imap->br_blockcount;
72 iomapp->iomap_flags = flags; 71 iomapp->iomap_flags = flags;
73 72
74 start_block = imap->br_startblock; 73 start_block = imap->br_startblock;