Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14687
b: refs/heads/master
c: a465639
h: refs/heads/master
i:
  14685: dd0c93e
  14683: 4249828
  14679: daf38ac
  14671: e1f1da9
  14655: 5bb6e3e
v: v3
  • Loading branch information
Nathan Scott committed Nov 25, 2005
1 parent c953192 commit 37eaedc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f33c6797bccc695c4c85885f2c676ad4c8fed98d
refs/heads/master: a4656391b76ed93faed724c5963f033164ee477e
13 changes: 6 additions & 7 deletions trunk/fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,13 +941,12 @@ __linvfs_get_block(
int retpbbm = 1;
int error;

if (blocks) {
offset = blocks << inode->i_blkbits; /* 64 bit goodness */
size = (ssize_t) min_t(xfs_off_t, offset, LONG_MAX);
} else {
size = 1 << inode->i_blkbits;
}
offset = (xfs_off_t)iblock << inode->i_blkbits;
if (blocks)
size = (ssize_t) min_t(xfs_off_t, LONG_MAX,
(xfs_off_t)blocks << inode->i_blkbits);
else
size = 1 << inode->i_blkbits;

VOP_BMAP(vp, offset, size,
create ? flags : BMAPI_READ, &iomap, &retpbbm, error);
Expand Down Expand Up @@ -1007,7 +1006,7 @@ __linvfs_get_block(
ASSERT(iomap.iomap_bsize - iomap.iomap_delta > 0);
offset = min_t(xfs_off_t,
iomap.iomap_bsize - iomap.iomap_delta,
blocks << inode->i_blkbits);
(xfs_off_t)blocks << inode->i_blkbits);
bh_result->b_size = (u32) min_t(xfs_off_t, UINT_MAX, offset);
}

Expand Down

0 comments on commit 37eaedc

Please sign in to comment.