xfs: remove iomap_delta
The iomap_delta field in struct xfs_iomap just contains the difference between the offset passed to xfs_iomap and the iomap_offset. Just calculate it in the only caller that cares. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
This commit is contained in:

committed by
Alex Elder

parent
046f1685bb
commit
9563b3d899
@@ -68,7 +68,6 @@ xfs_imap_to_bmap(
|
||||
xfs_fsblock_t start_block;
|
||||
|
||||
iomapp->iomap_offset = XFS_FSB_TO_B(mp, imap->br_startoff);
|
||||
iomapp->iomap_delta = offset - iomapp->iomap_offset;
|
||||
iomapp->iomap_bsize = XFS_FSB_TO_B(mp, imap->br_blockcount);
|
||||
iomapp->iomap_flags = flags;
|
||||
|
||||
|
Reference in New Issue
Block a user