diff options
| author | Chris Metcalf <cmetcalf@tilera.com> | 2010-07-06 13:45:24 -0400 |
|---|---|---|
| committer | Chris Metcalf <cmetcalf@tilera.com> | 2010-07-06 13:45:24 -0400 |
| commit | a2262d8a231e92742651859a10c9a4430a5e899a (patch) | |
| tree | b5a823e3f6a3f60e1dd995f113caf0b350228d84 /fs/xfs/xfs_inode.c | |
| parent | ef06f55a5c936a395f3ee2e1237bbebdb4396c65 (diff) | |
| parent | 815c4163b6c8ebf8152f42b0a5fd015cfdcedc78 (diff) | |
Merge branch 'master' into for-linus
Diffstat (limited to 'fs/xfs/xfs_inode.c')
| -rw-r--r-- | fs/xfs/xfs_inode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index d53c39de7d05..b76a829d7e20 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
| @@ -177,7 +177,7 @@ xfs_imap_to_bp( | |||
| 177 | if (unlikely(XFS_TEST_ERROR(!di_ok, mp, | 177 | if (unlikely(XFS_TEST_ERROR(!di_ok, mp, |
| 178 | XFS_ERRTAG_ITOBP_INOTOBP, | 178 | XFS_ERRTAG_ITOBP_INOTOBP, |
| 179 | XFS_RANDOM_ITOBP_INOTOBP))) { | 179 | XFS_RANDOM_ITOBP_INOTOBP))) { |
| 180 | if (iget_flags & XFS_IGET_BULKSTAT) { | 180 | if (iget_flags & XFS_IGET_UNTRUSTED) { |
| 181 | xfs_trans_brelse(tp, bp); | 181 | xfs_trans_brelse(tp, bp); |
| 182 | return XFS_ERROR(EINVAL); | 182 | return XFS_ERROR(EINVAL); |
| 183 | } | 183 | } |
| @@ -787,7 +787,6 @@ xfs_iread( | |||
| 787 | xfs_mount_t *mp, | 787 | xfs_mount_t *mp, |
| 788 | xfs_trans_t *tp, | 788 | xfs_trans_t *tp, |
| 789 | xfs_inode_t *ip, | 789 | xfs_inode_t *ip, |
| 790 | xfs_daddr_t bno, | ||
| 791 | uint iget_flags) | 790 | uint iget_flags) |
| 792 | { | 791 | { |
| 793 | xfs_buf_t *bp; | 792 | xfs_buf_t *bp; |
| @@ -797,11 +796,9 @@ xfs_iread( | |||
| 797 | /* | 796 | /* |
| 798 | * Fill in the location information in the in-core inode. | 797 | * Fill in the location information in the in-core inode. |
| 799 | */ | 798 | */ |
| 800 | ip->i_imap.im_blkno = bno; | ||
| 801 | error = xfs_imap(mp, tp, ip->i_ino, &ip->i_imap, iget_flags); | 799 | error = xfs_imap(mp, tp, ip->i_ino, &ip->i_imap, iget_flags); |
| 802 | if (error) | 800 | if (error) |
| 803 | return error; | 801 | return error; |
| 804 | ASSERT(bno == 0 || bno == ip->i_imap.im_blkno); | ||
| 805 | 802 | ||
| 806 | /* | 803 | /* |
| 807 | * Get pointers to the on-disk inode and the buffer containing it. | 804 | * Get pointers to the on-disk inode and the buffer containing it. |
