Lines Matching refs:tmp
1271 int tmp; in xfs_attr3_leaf_add() local
1294 tmp = entsize; in xfs_attr3_leaf_add()
1296 tmp += sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_add()
1297 if (ichdr.freemap[i].size >= tmp) { in xfs_attr3_leaf_add()
1298 tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, i); in xfs_attr3_leaf_add()
1323 tmp = -ENOSPC; in xfs_attr3_leaf_add()
1327 tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, 0); in xfs_attr3_leaf_add()
1334 return tmp; in xfs_attr3_leaf_add()
1352 int tmp; in xfs_attr3_leaf_add_work() local
1366 tmp = ichdr->count - args->index; in xfs_attr3_leaf_add_work()
1367 tmp *= sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_add_work()
1368 memmove(entry + 1, entry, tmp); in xfs_attr3_leaf_add_work()
1370 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr3_leaf_add_work()
1385 ichdr->freemap[mapindex].size -= xfs_attr_leaf_newentsize(args, &tmp); in xfs_attr3_leaf_add_work()
1390 entry->flags = tmp ? XFS_ATTR_LOCAL : 0; in xfs_attr3_leaf_add_work()
1444 tmp = (ichdr->count - 1) * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add_work()
1448 if (ichdr->freemap[i].base == tmp) { in xfs_attr3_leaf_add_work()
1777 int tmp; in xfs_attr3_leaf_figure_balance() local
1797 tmp = totallen + sizeof(*entry) + in xfs_attr3_leaf_figure_balance()
1799 if (XFS_ATTR_ABS(half - tmp) > lastdelta) in xfs_attr3_leaf_figure_balance()
1801 lastdelta = XFS_ATTR_ABS(half - tmp); in xfs_attr3_leaf_figure_balance()
1802 totallen = tmp; in xfs_attr3_leaf_figure_balance()
1818 tmp = totallen + sizeof(*entry) + xfs_attr_leaf_entsize(leaf1, in xfs_attr3_leaf_figure_balance()
1820 if (XFS_ATTR_ABS(half - tmp) > lastdelta) in xfs_attr3_leaf_figure_balance()
1822 lastdelta = XFS_ATTR_ABS(half - tmp); in xfs_attr3_leaf_figure_balance()
1823 totallen = tmp; in xfs_attr3_leaf_figure_balance()
1997 int tmp; in xfs_attr3_leaf_remove() local
2023 tmp = ichdr.freemap[0].size; in xfs_attr3_leaf_remove()
2041 } else if (ichdr.freemap[i].size < tmp) { in xfs_attr3_leaf_remove()
2042 tmp = ichdr.freemap[i].size; in xfs_attr3_leaf_remove()
2090 tmp = (ichdr.count - args->index) * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_remove()
2091 memmove(entry, entry + 1, tmp); in xfs_attr3_leaf_remove()
2094 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(xfs_attr_leaf_entry_t))); in xfs_attr3_leaf_remove()
2106 tmp = args->geo->blksize; in xfs_attr3_leaf_remove()
2112 if (be16_to_cpu(entry->nameidx) < tmp) in xfs_attr3_leaf_remove()
2113 tmp = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_remove()
2115 ichdr.firstused = tmp; in xfs_attr3_leaf_remove()
2129 tmp = ichdr.usedbytes + xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_remove()
2132 return tmp < args->geo->magicpct; /* leaf is < 37% full */ in xfs_attr3_leaf_remove()
2440 int tmp; in xfs_attr3_leaf_moveents() local
2471 tmp = ichdr_d->count - start_d; in xfs_attr3_leaf_moveents()
2472 tmp *= sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2475 memmove(entry_d, entry_s, tmp); in xfs_attr3_leaf_moveents()
2487 tmp = xfs_attr_leaf_entsize(leaf_s, start_s + i); in xfs_attr3_leaf_moveents()
2495 memset(xfs_attr3_leaf_name(leaf_s, start_s + i), 0, tmp); in xfs_attr3_leaf_moveents()
2496 ichdr_s->usedbytes -= tmp; in xfs_attr3_leaf_moveents()
2504 ichdr_d->firstused -= tmp; in xfs_attr3_leaf_moveents()
2509 ASSERT(be16_to_cpu(entry_d->nameidx) + tmp in xfs_attr3_leaf_moveents()
2512 xfs_attr3_leaf_name(leaf_s, start_s + i), tmp); in xfs_attr3_leaf_moveents()
2513 ASSERT(be16_to_cpu(entry_s->nameidx) + tmp in xfs_attr3_leaf_moveents()
2515 memset(xfs_attr3_leaf_name(leaf_s, start_s + i), 0, tmp); in xfs_attr3_leaf_moveents()
2516 ichdr_s->usedbytes -= tmp; in xfs_attr3_leaf_moveents()
2517 ichdr_d->usedbytes += tmp; in xfs_attr3_leaf_moveents()
2520 tmp = ichdr_d->count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_moveents()
2522 ASSERT(ichdr_d->firstused >= tmp); in xfs_attr3_leaf_moveents()
2532 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2534 ASSERT(((char *)entry_s + tmp) <= in xfs_attr3_leaf_moveents()
2536 memset(entry_s, 0, tmp); in xfs_attr3_leaf_moveents()
2542 tmp = (ichdr_s->count - count) * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2545 memmove(entry_d, entry_s, tmp); in xfs_attr3_leaf_moveents()
2547 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2549 ASSERT(((char *)entry_s + tmp) <= in xfs_attr3_leaf_moveents()
2551 memset(entry_s, 0, tmp); in xfs_attr3_leaf_moveents()