Lines Matching refs:tmp
1367 int tmp; in xfs_attr3_leaf_add() local
1390 tmp = entsize; in xfs_attr3_leaf_add()
1392 tmp += sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_add()
1393 if (ichdr.freemap[i].size >= tmp) { in xfs_attr3_leaf_add()
1394 tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, i); in xfs_attr3_leaf_add()
1419 tmp = -ENOSPC; in xfs_attr3_leaf_add()
1423 tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, 0); in xfs_attr3_leaf_add()
1430 return tmp; in xfs_attr3_leaf_add()
1448 int tmp; in xfs_attr3_leaf_add_work() local
1462 tmp = ichdr->count - args->index; in xfs_attr3_leaf_add_work()
1463 tmp *= sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_add_work()
1464 memmove(entry + 1, entry, tmp); in xfs_attr3_leaf_add_work()
1466 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr3_leaf_add_work()
1481 ichdr->freemap[mapindex].size -= xfs_attr_leaf_newentsize(args, &tmp); in xfs_attr3_leaf_add_work()
1487 if (tmp) in xfs_attr3_leaf_add_work()
1541 tmp = (ichdr->count - 1) * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add_work()
1545 if (ichdr->freemap[i].base == tmp) { in xfs_attr3_leaf_add_work()
1876 int tmp; in xfs_attr3_leaf_figure_balance() local
1896 tmp = totallen + sizeof(*entry) + in xfs_attr3_leaf_figure_balance()
1898 if (XFS_ATTR_ABS(half - tmp) > lastdelta) in xfs_attr3_leaf_figure_balance()
1900 lastdelta = XFS_ATTR_ABS(half - tmp); in xfs_attr3_leaf_figure_balance()
1901 totallen = tmp; in xfs_attr3_leaf_figure_balance()
1917 tmp = totallen + sizeof(*entry) + xfs_attr_leaf_entsize(leaf1, in xfs_attr3_leaf_figure_balance()
1919 if (XFS_ATTR_ABS(half - tmp) > lastdelta) in xfs_attr3_leaf_figure_balance()
1921 lastdelta = XFS_ATTR_ABS(half - tmp); in xfs_attr3_leaf_figure_balance()
1922 totallen = tmp; in xfs_attr3_leaf_figure_balance()
2096 int tmp; in xfs_attr3_leaf_remove() local
2122 tmp = ichdr.freemap[0].size; in xfs_attr3_leaf_remove()
2140 } else if (ichdr.freemap[i].size < tmp) { in xfs_attr3_leaf_remove()
2141 tmp = ichdr.freemap[i].size; in xfs_attr3_leaf_remove()
2189 tmp = (ichdr.count - args->index) * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_remove()
2190 memmove(entry, entry + 1, tmp); in xfs_attr3_leaf_remove()
2193 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(xfs_attr_leaf_entry_t))); in xfs_attr3_leaf_remove()
2205 tmp = args->geo->blksize; in xfs_attr3_leaf_remove()
2211 if (be16_to_cpu(entry->nameidx) < tmp) in xfs_attr3_leaf_remove()
2212 tmp = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_remove()
2214 ichdr.firstused = tmp; in xfs_attr3_leaf_remove()
2228 tmp = ichdr.usedbytes + xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_remove()
2231 return tmp < args->geo->magicpct; /* leaf is < 37% full */ in xfs_attr3_leaf_remove()
2529 int tmp; in xfs_attr3_leaf_moveents() local
2560 tmp = ichdr_d->count - start_d; in xfs_attr3_leaf_moveents()
2561 tmp *= sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2564 memmove(entry_d, entry_s, tmp); in xfs_attr3_leaf_moveents()
2576 tmp = xfs_attr_leaf_entsize(leaf_s, start_s + i); in xfs_attr3_leaf_moveents()
2584 memset(xfs_attr3_leaf_name(leaf_s, start_s + i), 0, tmp); in xfs_attr3_leaf_moveents()
2585 ichdr_s->usedbytes -= tmp; in xfs_attr3_leaf_moveents()
2593 ichdr_d->firstused -= tmp; in xfs_attr3_leaf_moveents()
2598 ASSERT(be16_to_cpu(entry_d->nameidx) + tmp in xfs_attr3_leaf_moveents()
2601 xfs_attr3_leaf_name(leaf_s, start_s + i), tmp); in xfs_attr3_leaf_moveents()
2602 ASSERT(be16_to_cpu(entry_s->nameidx) + tmp in xfs_attr3_leaf_moveents()
2604 memset(xfs_attr3_leaf_name(leaf_s, start_s + i), 0, tmp); in xfs_attr3_leaf_moveents()
2605 ichdr_s->usedbytes -= tmp; in xfs_attr3_leaf_moveents()
2606 ichdr_d->usedbytes += tmp; in xfs_attr3_leaf_moveents()
2609 tmp = ichdr_d->count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_moveents()
2611 ASSERT(ichdr_d->firstused >= tmp); in xfs_attr3_leaf_moveents()
2621 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2623 ASSERT(((char *)entry_s + tmp) <= in xfs_attr3_leaf_moveents()
2625 memset(entry_s, 0, tmp); in xfs_attr3_leaf_moveents()
2631 tmp = (ichdr_s->count - count) * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2634 memmove(entry_d, entry_s, tmp); in xfs_attr3_leaf_moveents()
2636 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2638 ASSERT(((char *)entry_s + tmp) <= in xfs_attr3_leaf_moveents()
2640 memset(entry_s, 0, tmp); in xfs_attr3_leaf_moveents()