diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-04-28 08:28:53 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-19 10:58:17 -0400 |
commit | 9563b3d8998c78d5b7e718b546d5f68037c494fe (patch) | |
tree | f614d05139491b129515443855e80eb0c562157b /fs/xfs/linux-2.6/xfs_aops.c | |
parent | 046f1685bb5211c3dea74fda0198c19171e9abc9 (diff) |
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>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 49dec212da40..577d0b448732 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c | |||
@@ -1512,9 +1512,11 @@ __xfs_get_blocks( | |||
1512 | } | 1512 | } |
1513 | 1513 | ||
1514 | if (direct || size > (1 << inode->i_blkbits)) { | 1514 | if (direct || size > (1 << inode->i_blkbits)) { |
1515 | ASSERT(iomap.iomap_bsize - iomap.iomap_delta > 0); | 1515 | xfs_off_t iomap_delta = offset - iomap.iomap_offset; |
1516 | |||
1517 | ASSERT(iomap.iomap_bsize - iomap_delta > 0); | ||
1516 | offset = min_t(xfs_off_t, | 1518 | offset = min_t(xfs_off_t, |
1517 | iomap.iomap_bsize - iomap.iomap_delta, size); | 1519 | iomap.iomap_bsize - iomap_delta, size); |
1518 | bh_result->b_size = (ssize_t)min_t(xfs_off_t, LONG_MAX, offset); | 1520 | bh_result->b_size = (ssize_t)min_t(xfs_off_t, LONG_MAX, offset); |
1519 | } | 1521 | } |
1520 | 1522 | ||