diff options
author | Nathan Scott <nathans@sgi.com> | 2006-03-17 01:28:54 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-03-17 01:28:54 -0500 |
commit | 918ae424e18666249cf32f16ba2803061bf1ebb7 (patch) | |
tree | 6a2d6c00a53480b6848245e653635f8152669633 /fs/xfs/xfs_attr.c | |
parent | 8f44e047a044df613bbc29837b9556e0c2e42e6b (diff) |
[XFS] endianess annotations for xfs_attr_leaf_hdr_t
SGI-PV: 943272
SGI-Modid: xfs-linux-melb:xfs-kern:25497a
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.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c index 36b120d859af..4a3f3cf6b20c 100644 --- a/fs/xfs/xfs_attr.c +++ b/fs/xfs/xfs_attr.c | |||
@@ -1772,8 +1772,7 @@ xfs_attr_node_list(xfs_attr_list_context_t *context) | |||
1772 | leaf = bp->data; | 1772 | leaf = bp->data; |
1773 | if (cursor->hashval > | 1773 | if (cursor->hashval > |
1774 | INT_GET(leaf->entries[ | 1774 | INT_GET(leaf->entries[ |
1775 | INT_GET(leaf->hdr.count, | 1775 | be16_to_cpu(leaf->hdr.count)-1].hashval, |
1776 | ARCH_CONVERT)-1].hashval, | ||
1777 | ARCH_CONVERT)) { | 1776 | ARCH_CONVERT)) { |
1778 | xfs_attr_trace_l_cl("wrong blk", | 1777 | xfs_attr_trace_l_cl("wrong blk", |
1779 | context, leaf); | 1778 | context, leaf); |
@@ -2289,9 +2288,9 @@ xfs_attr_trace_l_cl(char *where, struct xfs_attr_list_context *context, | |||
2289 | : 0, | 2288 | : 0, |
2290 | (__psunsigned_t)context->dupcnt, | 2289 | (__psunsigned_t)context->dupcnt, |
2291 | (__psunsigned_t)context->flags, | 2290 | (__psunsigned_t)context->flags, |
2292 | (__psunsigned_t)INT_GET(leaf->hdr.count, ARCH_CONVERT), | 2291 | (__psunsigned_t)be16_to_cpu(leaf->hdr.count), |
2293 | (__psunsigned_t)INT_GET(leaf->entries[0].hashval, ARCH_CONVERT), | 2292 | (__psunsigned_t)INT_GET(leaf->entries[0].hashval, ARCH_CONVERT), |
2294 | (__psunsigned_t)INT_GET(leaf->entries[INT_GET(leaf->hdr.count, ARCH_CONVERT)-1].hashval, ARCH_CONVERT)); | 2293 | (__psunsigned_t)INT_GET(leaf->entries[be16_to_cpu(leaf->hdr.count)-1].hashval, ARCH_CONVERT)); |
2295 | } | 2294 | } |
2296 | 2295 | ||
2297 | /* | 2296 | /* |