diff options
Diffstat (limited to 'fs/xfs/xfs_attr.c')
-rw-r--r-- | fs/xfs/xfs_attr.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c index 98d0f4d10602..5d61c628d0db 100644 --- a/fs/xfs/xfs_attr.c +++ b/fs/xfs/xfs_attr.c | |||
@@ -1829,9 +1829,8 @@ xfs_attr_node_list(xfs_attr_list_context_t *context) | |||
1829 | i < INT_GET(node->hdr.count, ARCH_CONVERT); | 1829 | i < INT_GET(node->hdr.count, ARCH_CONVERT); |
1830 | btree++, i++) { | 1830 | btree++, i++) { |
1831 | if (cursor->hashval | 1831 | if (cursor->hashval |
1832 | <= INT_GET(btree->hashval, | 1832 | <= be32_to_cpu(btree->hashval)) { |
1833 | ARCH_CONVERT)) { | 1833 | cursor->blkno = be32_to_cpu(btree->before); |
1834 | cursor->blkno = INT_GET(btree->before, ARCH_CONVERT); | ||
1835 | xfs_attr_trace_l_cb("descending", | 1834 | xfs_attr_trace_l_cb("descending", |
1836 | context, btree); | 1835 | context, btree); |
1837 | break; | 1836 | break; |
@@ -2228,8 +2227,8 @@ xfs_attr_trace_l_cn(char *where, struct xfs_attr_list_context *context, | |||
2228 | (__psunsigned_t)context->dupcnt, | 2227 | (__psunsigned_t)context->dupcnt, |
2229 | (__psunsigned_t)context->flags, | 2228 | (__psunsigned_t)context->flags, |
2230 | (__psunsigned_t)INT_GET(node->hdr.count, ARCH_CONVERT), | 2229 | (__psunsigned_t)INT_GET(node->hdr.count, ARCH_CONVERT), |
2231 | (__psunsigned_t)INT_GET(node->btree[0].hashval, ARCH_CONVERT), | 2230 | (__psunsigned_t)be32_to_cpu(node->btree[0].hashval), |
2232 | (__psunsigned_t)INT_GET(node->btree[INT_GET(node->hdr.count, ARCH_CONVERT)-1].hashval, ARCH_CONVERT)); | 2231 | (__psunsigned_t)be32_to_cpu(node->btree[INT_GET(node->hdr.count, ARCH_CONVERT)-1].hashval)); |
2233 | } | 2232 | } |
2234 | 2233 | ||
2235 | /* | 2234 | /* |
@@ -2256,8 +2255,8 @@ xfs_attr_trace_l_cb(char *where, struct xfs_attr_list_context *context, | |||
2256 | : 0, | 2255 | : 0, |
2257 | (__psunsigned_t)context->dupcnt, | 2256 | (__psunsigned_t)context->dupcnt, |
2258 | (__psunsigned_t)context->flags, | 2257 | (__psunsigned_t)context->flags, |
2259 | (__psunsigned_t)INT_GET(btree->hashval, ARCH_CONVERT), | 2258 | (__psunsigned_t)be32_to_cpu(btree->hashval), |
2260 | (__psunsigned_t)INT_GET(btree->before, ARCH_CONVERT), | 2259 | (__psunsigned_t)be32_to_cpu(btree->before), |
2261 | (__psunsigned_t)NULL); | 2260 | (__psunsigned_t)NULL); |
2262 | } | 2261 | } |
2263 | 2262 | ||