aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-03-17 01:29:02 -0500
committerNathan Scott <nathans@sgi.com>2006-03-17 01:29:02 -0500
commit6b19f2d87da9908acf1e0f48b4e79cf8bc833811 (patch)
tree532199e785a22b41a046ff6e5b2a9d99d3eb566a /fs/xfs/xfs_attr.c
parent918ae424e18666249cf32f16ba2803061bf1ebb7 (diff)
[XFS] endianess annotations for xfs_attr_leaf_entry_t
SGI-PV: 943272 SGI-Modid: xfs-linux-melb:xfs-kern:25498a Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_attr.c')
-rw-r--r--fs/xfs/xfs_attr.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c
index 4a3f3cf6b20c..98d0f4d10602 100644
--- a/fs/xfs/xfs_attr.c
+++ b/fs/xfs/xfs_attr.c
@@ -1770,17 +1770,14 @@ xfs_attr_node_list(xfs_attr_list_context_t *context)
1770 break; 1770 break;
1771 case XFS_ATTR_LEAF_MAGIC: 1771 case XFS_ATTR_LEAF_MAGIC:
1772 leaf = bp->data; 1772 leaf = bp->data;
1773 if (cursor->hashval > 1773 if (cursor->hashval > be32_to_cpu(leaf->entries[
1774 INT_GET(leaf->entries[ 1774 be16_to_cpu(leaf->hdr.count)-1].hashval)) {
1775 be16_to_cpu(leaf->hdr.count)-1].hashval,
1776 ARCH_CONVERT)) {
1777 xfs_attr_trace_l_cl("wrong blk", 1775 xfs_attr_trace_l_cl("wrong blk",
1778 context, leaf); 1776 context, leaf);
1779 xfs_da_brelse(NULL, bp); 1777 xfs_da_brelse(NULL, bp);
1780 bp = NULL; 1778 bp = NULL;
1781 } else if (cursor->hashval <= 1779 } else if (cursor->hashval <=
1782 INT_GET(leaf->entries[0].hashval, 1780 be32_to_cpu(leaf->entries[0].hashval)) {
1783 ARCH_CONVERT)) {
1784 xfs_attr_trace_l_cl("maybe wrong blk", 1781 xfs_attr_trace_l_cl("maybe wrong blk",
1785 context, leaf); 1782 context, leaf);
1786 xfs_da_brelse(NULL, bp); 1783 xfs_da_brelse(NULL, bp);
@@ -2289,8 +2286,9 @@ xfs_attr_trace_l_cl(char *where, struct xfs_attr_list_context *context,
2289 (__psunsigned_t)context->dupcnt, 2286 (__psunsigned_t)context->dupcnt,
2290 (__psunsigned_t)context->flags, 2287 (__psunsigned_t)context->flags,
2291 (__psunsigned_t)be16_to_cpu(leaf->hdr.count), 2288 (__psunsigned_t)be16_to_cpu(leaf->hdr.count),
2292 (__psunsigned_t)INT_GET(leaf->entries[0].hashval, ARCH_CONVERT), 2289 (__psunsigned_t)be32_to_cpu(leaf->entries[0].hashval),
2293 (__psunsigned_t)INT_GET(leaf->entries[be16_to_cpu(leaf->hdr.count)-1].hashval, ARCH_CONVERT)); 2290 (__psunsigned_t)be32_to_cpu(leaf->entries[
2291 be16_to_cpu(leaf->hdr.count)-1].hashval));
2294} 2292}
2295 2293
2296/* 2294/*