diff options
author | Nathan Scott <nathans@sgi.com> | 2006-03-17 01:28:47 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-03-17 01:28:47 -0500 |
commit | 8f44e047a044df613bbc29837b9556e0c2e42e6b (patch) | |
tree | b995226d8674962f013407cfcd163f8f1e0d8365 /fs/xfs | |
parent | 89da054424a775b4b257556eda8a300be1134d7c (diff) |
[XFS] remove bogus INT_GET on u8 variables in xfs_dir2_block.c
SGI-PV: 943272
SGI-Modid: xfs-linux-melb:xfs-kern:25496a
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_dir2_block.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_dir2_block.c b/fs/xfs/xfs_dir2_block.c index aaf5644d8fdc..bd5cee6aa51a 100644 --- a/fs/xfs/xfs_dir2_block.c +++ b/fs/xfs/xfs_dir2_block.c | |||
@@ -1101,7 +1101,7 @@ xfs_dir2_sf_to_block( | |||
1101 | * Compute size of block "tail" area. | 1101 | * Compute size of block "tail" area. |
1102 | */ | 1102 | */ |
1103 | i = (uint)sizeof(*btp) + | 1103 | i = (uint)sizeof(*btp) + |
1104 | (INT_GET(sfp->hdr.count, ARCH_CONVERT) + 2) * (uint)sizeof(xfs_dir2_leaf_entry_t); | 1104 | (sfp->hdr.count + 2) * (uint)sizeof(xfs_dir2_leaf_entry_t); |
1105 | /* | 1105 | /* |
1106 | * The whole thing is initialized to free by the init routine. | 1106 | * The whole thing is initialized to free by the init routine. |
1107 | * Say we're using the leaf and tail area. | 1107 | * Say we're using the leaf and tail area. |
@@ -1115,7 +1115,7 @@ xfs_dir2_sf_to_block( | |||
1115 | * Fill in the tail. | 1115 | * Fill in the tail. |
1116 | */ | 1116 | */ |
1117 | btp = XFS_DIR2_BLOCK_TAIL_P(mp, block); | 1117 | btp = XFS_DIR2_BLOCK_TAIL_P(mp, block); |
1118 | btp->count = cpu_to_be32(INT_GET(sfp->hdr.count, ARCH_CONVERT) + 2); /* ., .. */ | 1118 | btp->count = cpu_to_be32(sfp->hdr.count + 2); /* ., .. */ |
1119 | btp->stale = 0; | 1119 | btp->stale = 0; |
1120 | blp = XFS_DIR2_BLOCK_LEAF_P(btp); | 1120 | blp = XFS_DIR2_BLOCK_LEAF_P(btp); |
1121 | endoffset = (uint)((char *)blp - (char *)block); | 1121 | endoffset = (uint)((char *)blp - (char *)block); |
@@ -1157,7 +1157,7 @@ xfs_dir2_sf_to_block( | |||
1157 | /* | 1157 | /* |
1158 | * Loop over existing entries, stuff them in. | 1158 | * Loop over existing entries, stuff them in. |
1159 | */ | 1159 | */ |
1160 | if ((i = 0) == INT_GET(sfp->hdr.count, ARCH_CONVERT)) | 1160 | if ((i = 0) == sfp->hdr.count) |
1161 | sfep = NULL; | 1161 | sfep = NULL; |
1162 | else | 1162 | else |
1163 | sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); | 1163 | sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); |
@@ -1205,7 +1205,7 @@ xfs_dir2_sf_to_block( | |||
1205 | blp[2 + i].address = cpu_to_be32(XFS_DIR2_BYTE_TO_DATAPTR(mp, | 1205 | blp[2 + i].address = cpu_to_be32(XFS_DIR2_BYTE_TO_DATAPTR(mp, |
1206 | (char *)dep - (char *)block)); | 1206 | (char *)dep - (char *)block)); |
1207 | offset = (int)((char *)(tagp + 1) - (char *)block); | 1207 | offset = (int)((char *)(tagp + 1) - (char *)block); |
1208 | if (++i == INT_GET(sfp->hdr.count, ARCH_CONVERT)) | 1208 | if (++i == sfp->hdr.count) |
1209 | sfep = NULL; | 1209 | sfep = NULL; |
1210 | else | 1210 | else |
1211 | sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep); | 1211 | sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep); |