aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_attr.c')
-rw-r--r--fs/xfs/xfs_attr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c
index 5d61c628d0db..093fac476bda 100644
--- a/fs/xfs/xfs_attr.c
+++ b/fs/xfs/xfs_attr.c
@@ -1825,8 +1825,7 @@ xfs_attr_node_list(xfs_attr_list_context_t *context)
1825 return(XFS_ERROR(EFSCORRUPTED)); 1825 return(XFS_ERROR(EFSCORRUPTED));
1826 } 1826 }
1827 btree = node->btree; 1827 btree = node->btree;
1828 for (i = 0; 1828 for (i = 0; i < be16_to_cpu(node->hdr.count);
1829 i < INT_GET(node->hdr.count, ARCH_CONVERT);
1830 btree++, i++) { 1829 btree++, i++) {
1831 if (cursor->hashval 1830 if (cursor->hashval
1832 <= be32_to_cpu(btree->hashval)) { 1831 <= be32_to_cpu(btree->hashval)) {
@@ -1836,7 +1835,7 @@ xfs_attr_node_list(xfs_attr_list_context_t *context)
1836 break; 1835 break;
1837 } 1836 }
1838 } 1837 }
1839 if (i == INT_GET(node->hdr.count, ARCH_CONVERT)) { 1838 if (i == be16_to_cpu(node->hdr.count)) {
1840 xfs_da_brelse(NULL, bp); 1839 xfs_da_brelse(NULL, bp);
1841 return(0); 1840 return(0);
1842 } 1841 }
@@ -2226,9 +2225,10 @@ xfs_attr_trace_l_cn(char *where, struct xfs_attr_list_context *context,
2226 : 0, 2225 : 0,
2227 (__psunsigned_t)context->dupcnt, 2226 (__psunsigned_t)context->dupcnt,
2228 (__psunsigned_t)context->flags, 2227 (__psunsigned_t)context->flags,
2229 (__psunsigned_t)INT_GET(node->hdr.count, ARCH_CONVERT), 2228 (__psunsigned_t)be16_to_cpu(node->hdr.count),
2230 (__psunsigned_t)be32_to_cpu(node->btree[0].hashval), 2229 (__psunsigned_t)be32_to_cpu(node->btree[0].hashval),
2231 (__psunsigned_t)be32_to_cpu(node->btree[INT_GET(node->hdr.count, ARCH_CONVERT)-1].hashval)); 2230 (__psunsigned_t)be32_to_cpu(node->btree[
2231 be16_to_cpu(node->hdr.count)-1].hashval));
2232} 2232}
2233 2233
2234/* 2234/*