ichdr              48 fs/xfs/libxfs/xfs_attr_leaf.c 				   struct xfs_attr3_icleaf_hdr *ichdr,
ichdr              51 fs/xfs/libxfs/xfs_attr_leaf.c 				   struct xfs_attr3_icleaf_hdr *ichdr,
ichdr             239 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr	ichdr;
ichdr             247 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf);
ichdr             258 fs/xfs/libxfs/xfs_attr_leaf.c 	if (!xfs_log_in_recovery(mp) && ichdr.count == 0)
ichdr             265 fs/xfs/libxfs/xfs_attr_leaf.c 	if (ichdr.firstused > mp->m_attr_geo->blksize)
ichdr             267 fs/xfs/libxfs/xfs_attr_leaf.c 	if (ichdr.firstused < xfs_attr3_leaf_hdr_size(leaf))
ichdr             272 fs/xfs/libxfs/xfs_attr_leaf.c 	if ((char *)&entries[ichdr.count] >
ichdr             273 fs/xfs/libxfs/xfs_attr_leaf.c 	    (char *)bp->b_addr + ichdr.firstused)
ichdr             289 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].base > mp->m_attr_geo->blksize)
ichdr             291 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].base & 0x3)
ichdr             293 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].size > mp->m_attr_geo->blksize)
ichdr             295 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].size & 0x3)
ichdr             299 fs/xfs/libxfs/xfs_attr_leaf.c 		end = (uint32_t)ichdr.freemap[i].base + ichdr.freemap[i].size;
ichdr             300 fs/xfs/libxfs/xfs_attr_leaf.c 		if (end < ichdr.freemap[i].base)
ichdr            1000 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            1018 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf);
ichdr            1051 fs/xfs/libxfs/xfs_attr_leaf.c 	for (i = 0; i < ichdr.count; entry++, i++) {
ichdr            1156 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            1173 fs/xfs/libxfs/xfs_attr_leaf.c 	memset(&ichdr, 0, sizeof(ichdr));
ichdr            1174 fs/xfs/libxfs/xfs_attr_leaf.c 	ichdr.firstused = args->geo->blksize;
ichdr            1179 fs/xfs/libxfs/xfs_attr_leaf.c 		ichdr.magic = XFS_ATTR3_LEAF_MAGIC;
ichdr            1185 fs/xfs/libxfs/xfs_attr_leaf.c 		ichdr.freemap[0].base = sizeof(struct xfs_attr3_leaf_hdr);
ichdr            1187 fs/xfs/libxfs/xfs_attr_leaf.c 		ichdr.magic = XFS_ATTR_LEAF_MAGIC;
ichdr            1188 fs/xfs/libxfs/xfs_attr_leaf.c 		ichdr.freemap[0].base = sizeof(struct xfs_attr_leaf_hdr);
ichdr            1190 fs/xfs/libxfs/xfs_attr_leaf.c 	ichdr.freemap[0].size = ichdr.firstused - ichdr.freemap[0].base;
ichdr            1192 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr);
ichdr            1267 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            1277 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf);
ichdr            1278 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(args->index >= 0 && args->index <= ichdr.count);
ichdr            1285 fs/xfs/libxfs/xfs_attr_leaf.c 	tablesize = (ichdr.count + 1) * sizeof(xfs_attr_leaf_entry_t)
ichdr            1288 fs/xfs/libxfs/xfs_attr_leaf.c 		if (tablesize > ichdr.firstused) {
ichdr            1289 fs/xfs/libxfs/xfs_attr_leaf.c 			sum += ichdr.freemap[i].size;
ichdr            1292 fs/xfs/libxfs/xfs_attr_leaf.c 		if (!ichdr.freemap[i].size)
ichdr            1295 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].base < ichdr.firstused)
ichdr            1297 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].size >= tmp) {
ichdr            1298 fs/xfs/libxfs/xfs_attr_leaf.c 			tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, i);
ichdr            1301 fs/xfs/libxfs/xfs_attr_leaf.c 		sum += ichdr.freemap[i].size;
ichdr            1309 fs/xfs/libxfs/xfs_attr_leaf.c 	if (!ichdr.holes && sum < entsize)
ichdr            1316 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_compact(args, &ichdr, bp);
ichdr            1322 fs/xfs/libxfs/xfs_attr_leaf.c 	if (ichdr.freemap[0].size < (entsize + sizeof(xfs_attr_leaf_entry_t))) {
ichdr            1327 fs/xfs/libxfs/xfs_attr_leaf.c 	tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, 0);
ichdr            1330 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr);
ichdr            1343 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr *ichdr,
ichdr            1359 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(args->index >= 0 && args->index <= ichdr->count);
ichdr            1365 fs/xfs/libxfs/xfs_attr_leaf.c 	if (args->index < ichdr->count) {
ichdr            1366 fs/xfs/libxfs/xfs_attr_leaf.c 		tmp  = ichdr->count - args->index;
ichdr            1372 fs/xfs/libxfs/xfs_attr_leaf.c 	ichdr->count++;
ichdr            1378 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(ichdr->freemap[mapindex].base < args->geo->blksize);
ichdr            1379 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT((ichdr->freemap[mapindex].base & 0x3) == 0);
ichdr            1380 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(ichdr->freemap[mapindex].size >=
ichdr            1382 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(ichdr->freemap[mapindex].size < args->geo->blksize);
ichdr            1383 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT((ichdr->freemap[mapindex].size & 0x3) == 0);
ichdr            1385 fs/xfs/libxfs/xfs_attr_leaf.c 	ichdr->freemap[mapindex].size -= xfs_attr_leaf_newentsize(args, &tmp);
ichdr            1387 fs/xfs/libxfs/xfs_attr_leaf.c 	entry->nameidx = cpu_to_be16(ichdr->freemap[mapindex].base +
ichdr            1388 fs/xfs/libxfs/xfs_attr_leaf.c 				     ichdr->freemap[mapindex].size);
ichdr            1403 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT((args->index == ichdr->count - 1) ||
ichdr            1439 fs/xfs/libxfs/xfs_attr_leaf.c 	if (be16_to_cpu(entry->nameidx) < ichdr->firstused)
ichdr            1440 fs/xfs/libxfs/xfs_attr_leaf.c 		ichdr->firstused = be16_to_cpu(entry->nameidx);
ichdr            1442 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(ichdr->firstused >= ichdr->count * sizeof(xfs_attr_leaf_entry_t)
ichdr            1444 fs/xfs/libxfs/xfs_attr_leaf.c 	tmp = (ichdr->count - 1) * sizeof(xfs_attr_leaf_entry_t)
ichdr            1448 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr->freemap[i].base == tmp) {
ichdr            1449 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr->freemap[i].base += sizeof(xfs_attr_leaf_entry_t);
ichdr            1450 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr->freemap[i].size -= sizeof(xfs_attr_leaf_entry_t);
ichdr            1453 fs/xfs/libxfs/xfs_attr_leaf.c 	ichdr->usedbytes += xfs_attr_leaf_entsize(leaf, args->index);
ichdr            1864 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            1882 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr, leaf);
ichdr            1884 fs/xfs/libxfs/xfs_attr_leaf.c 		ichdr.count * sizeof(xfs_attr_leaf_entry_t) +
ichdr            1885 fs/xfs/libxfs/xfs_attr_leaf.c 		ichdr.usedbytes;
ichdr            1897 fs/xfs/libxfs/xfs_attr_leaf.c 	if (ichdr.count == 0) {
ichdr            1902 fs/xfs/libxfs/xfs_attr_leaf.c 		forward = (ichdr.forw != 0);
ichdr            1924 fs/xfs/libxfs/xfs_attr_leaf.c 	forward = ichdr.forw < ichdr.back;
ichdr            1928 fs/xfs/libxfs/xfs_attr_leaf.c 			blkno = ichdr.forw;
ichdr            1930 fs/xfs/libxfs/xfs_attr_leaf.c 			blkno = ichdr.back;
ichdr            1942 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.usedbytes - ichdr2.usedbytes -
ichdr            1943 fs/xfs/libxfs/xfs_attr_leaf.c 			((ichdr.count + ichdr2.count) *
ichdr            1990 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            2003 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf);
ichdr            2005 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(ichdr.count > 0 && ichdr.count < args->geo->blksize / 8);
ichdr            2006 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(args->index >= 0 && args->index < ichdr.count);
ichdr            2007 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(ichdr.firstused >= ichdr.count * sizeof(*entry) +
ichdr            2012 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused);
ichdr            2021 fs/xfs/libxfs/xfs_attr_leaf.c 	tablesize = ichdr.count * sizeof(xfs_attr_leaf_entry_t)
ichdr            2023 fs/xfs/libxfs/xfs_attr_leaf.c 	tmp = ichdr.freemap[0].size;
ichdr            2028 fs/xfs/libxfs/xfs_attr_leaf.c 		ASSERT(ichdr.freemap[i].base < args->geo->blksize);
ichdr            2029 fs/xfs/libxfs/xfs_attr_leaf.c 		ASSERT(ichdr.freemap[i].size < args->geo->blksize);
ichdr            2030 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].base == tablesize) {
ichdr            2031 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[i].base -= sizeof(xfs_attr_leaf_entry_t);
ichdr            2032 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[i].size += sizeof(xfs_attr_leaf_entry_t);
ichdr            2035 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[i].base + ichdr.freemap[i].size ==
ichdr            2038 fs/xfs/libxfs/xfs_attr_leaf.c 		} else if (ichdr.freemap[i].base ==
ichdr            2041 fs/xfs/libxfs/xfs_attr_leaf.c 		} else if (ichdr.freemap[i].size < tmp) {
ichdr            2042 fs/xfs/libxfs/xfs_attr_leaf.c 			tmp = ichdr.freemap[i].size;
ichdr            2053 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[before].size += entsize;
ichdr            2054 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[before].size += ichdr.freemap[after].size;
ichdr            2055 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[after].base = 0;
ichdr            2056 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[after].size = 0;
ichdr            2058 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[before].size += entsize;
ichdr            2060 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[after].base = be16_to_cpu(entry->nameidx);
ichdr            2061 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[after].size += entsize;
ichdr            2067 fs/xfs/libxfs/xfs_attr_leaf.c 		if (ichdr.freemap[smallest].size < entsize) {
ichdr            2068 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[smallest].base = be16_to_cpu(entry->nameidx);
ichdr            2069 fs/xfs/libxfs/xfs_attr_leaf.c 			ichdr.freemap[smallest].size = entsize;
ichdr            2076 fs/xfs/libxfs/xfs_attr_leaf.c 	if (be16_to_cpu(entry->nameidx) == ichdr.firstused)
ichdr            2085 fs/xfs/libxfs/xfs_attr_leaf.c 	ichdr.usedbytes -= entsize;
ichdr            2090 fs/xfs/libxfs/xfs_attr_leaf.c 	tmp = (ichdr.count - args->index) * sizeof(xfs_attr_leaf_entry_t);
ichdr            2092 fs/xfs/libxfs/xfs_attr_leaf.c 	ichdr.count--;
ichdr            2096 fs/xfs/libxfs/xfs_attr_leaf.c 	entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count];
ichdr            2108 fs/xfs/libxfs/xfs_attr_leaf.c 		for (i = ichdr.count - 1; i >= 0; entry++, i--) {
ichdr            2109 fs/xfs/libxfs/xfs_attr_leaf.c 			ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused);
ichdr            2115 fs/xfs/libxfs/xfs_attr_leaf.c 		ichdr.firstused = tmp;
ichdr            2116 fs/xfs/libxfs/xfs_attr_leaf.c 		ASSERT(ichdr.firstused != 0);
ichdr            2118 fs/xfs/libxfs/xfs_attr_leaf.c 		ichdr.holes = 1;	/* mark as needing compaction */
ichdr            2120 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr);
ichdr            2129 fs/xfs/libxfs/xfs_attr_leaf.c 	tmp = ichdr.usedbytes + xfs_attr3_leaf_hdr_size(leaf) +
ichdr            2130 fs/xfs/libxfs/xfs_attr_leaf.c 	      ichdr.count * sizeof(xfs_attr_leaf_entry_t);
ichdr            2270 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            2282 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf);
ichdr            2284 fs/xfs/libxfs/xfs_attr_leaf.c 	if (ichdr.count >= args->geo->blksize / 8)
ichdr            2291 fs/xfs/libxfs/xfs_attr_leaf.c 	probe = span = ichdr.count / 2;
ichdr            2301 fs/xfs/libxfs/xfs_attr_leaf.c 	if (!(probe >= 0 && (!ichdr.count || probe < ichdr.count)))
ichdr            2314 fs/xfs/libxfs/xfs_attr_leaf.c 	while (probe < ichdr.count &&
ichdr            2319 fs/xfs/libxfs/xfs_attr_leaf.c 	if (probe == ichdr.count || be32_to_cpu(entry->hashval) != hashval) {
ichdr            2327 fs/xfs/libxfs/xfs_attr_leaf.c 	for (; probe < ichdr.count && (be32_to_cpu(entry->hashval) == hashval);
ichdr            2387 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            2393 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf);
ichdr            2394 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(ichdr.count < args->geo->blksize / 8);
ichdr            2395 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(args->index < ichdr.count);
ichdr            2575 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            2579 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, bp->b_addr);
ichdr            2582 fs/xfs/libxfs/xfs_attr_leaf.c 		*count = ichdr.count;
ichdr            2583 fs/xfs/libxfs/xfs_attr_leaf.c 	if (!ichdr.count)
ichdr            2585 fs/xfs/libxfs/xfs_attr_leaf.c 	return be32_to_cpu(entries[ichdr.count - 1].hashval);
ichdr            2654 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            2673 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf);
ichdr            2674 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(args->index < ichdr.count);
ichdr            2723 fs/xfs/libxfs/xfs_attr_leaf.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr            2737 fs/xfs/libxfs/xfs_attr_leaf.c 	xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf);
ichdr            2738 fs/xfs/libxfs/xfs_attr_leaf.c 	ASSERT(args->index < ichdr.count);
ichdr             147 fs/xfs/libxfs/xfs_da_btree.c 	struct xfs_da3_icnode_hdr ichdr;
ichdr             153 fs/xfs/libxfs/xfs_da_btree.c 	ops->node_hdr_from_disk(&ichdr, hdr);
ichdr             159 fs/xfs/libxfs/xfs_da_btree.c 	if (ichdr.level == 0)
ichdr             161 fs/xfs/libxfs/xfs_da_btree.c 	if (ichdr.level > XFS_DA_NODE_MAXDEPTH)
ichdr             163 fs/xfs/libxfs/xfs_da_btree.c 	if (ichdr.count == 0)
ichdr             170 fs/xfs/libxfs/xfs_da_btree.c 	if (ichdr.count > mp->m_dir_geo->node_ents &&
ichdr             171 fs/xfs/libxfs/xfs_da_btree.c 	    ichdr.count > mp->m_attr_geo->node_ents)
ichdr             338 fs/xfs/libxfs/xfs_da_btree.c 	struct xfs_da3_icnode_hdr ichdr = {0};
ichdr             357 fs/xfs/libxfs/xfs_da_btree.c 		ichdr.magic = XFS_DA3_NODE_MAGIC;
ichdr             362 fs/xfs/libxfs/xfs_da_btree.c 		ichdr.magic = XFS_DA_NODE_MAGIC;
ichdr             364 fs/xfs/libxfs/xfs_da_btree.c 	ichdr.level = level;
ichdr             366 fs/xfs/libxfs/xfs_da_btree.c 	dp->d_ops->node_hdr_to_disk(node, &ichdr);
ichdr             109 fs/xfs/xfs_attr_inactive.c 	struct xfs_attr3_icleaf_hdr ichdr;
ichdr             122 fs/xfs/xfs_attr_inactive.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf);
ichdr             129 fs/xfs/xfs_attr_inactive.c 	for (i = 0; i < ichdr.count; entry++, i++) {
ichdr             157 fs/xfs/xfs_attr_inactive.c 	for (i = 0; i < ichdr.count; entry++, i++) {
ichdr             205 fs/xfs/xfs_attr_inactive.c 	struct xfs_da3_icnode_hdr ichdr;
ichdr             216 fs/xfs/xfs_attr_inactive.c 	dp->d_ops->node_hdr_from_disk(&ichdr, node);
ichdr             218 fs/xfs/xfs_attr_inactive.c 	if (!ichdr.count) {
ichdr             231 fs/xfs/xfs_attr_inactive.c 	for (i = 0; i < ichdr.count; i++) {
ichdr             281 fs/xfs/xfs_attr_inactive.c 		if (i + 1 < ichdr.count) {
ichdr             385 fs/xfs/xfs_attr_list.c 	struct xfs_attr3_icleaf_hdr	ichdr;
ichdr             394 fs/xfs/xfs_attr_list.c 	xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf);
ichdr             405 fs/xfs/xfs_attr_list.c 		for (i = 0; i < ichdr.count; entry++, i++) {
ichdr             418 fs/xfs/xfs_attr_list.c 		if (i == ichdr.count) {
ichdr             431 fs/xfs/xfs_attr_list.c 	for (; i < ichdr.count; entry++, i++) {