• Home
  • Raw
  • Download

Lines Matching refs:tmp

1006 	int tablesize, entsize, sum, tmp, i;  in xfs_attr_leaf_add()  local
1031 tmp = entsize; in xfs_attr_leaf_add()
1033 tmp += sizeof(xfs_attr_leaf_entry_t); in xfs_attr_leaf_add()
1034 if (be16_to_cpu(map->size) >= tmp) { in xfs_attr_leaf_add()
1035 tmp = xfs_attr_leaf_add_work(bp, args, i); in xfs_attr_leaf_add()
1036 return(tmp); in xfs_attr_leaf_add()
1079 int tmp, i; in xfs_attr_leaf_add_work() local
1092 tmp = be16_to_cpu(hdr->count) - args->index; in xfs_attr_leaf_add_work()
1093 tmp *= sizeof(xfs_attr_leaf_entry_t); in xfs_attr_leaf_add_work()
1094 memmove((char *)(entry+1), (char *)entry, tmp); in xfs_attr_leaf_add_work()
1096 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr_leaf_add_work()
1114 mp->m_sb.sb_blocksize, &tmp)); in xfs_attr_leaf_add_work()
1118 entry->flags = tmp ? XFS_ATTR_LOCAL : 0; in xfs_attr_leaf_add_work()
1174 tmp = (be16_to_cpu(hdr->count)-1) * sizeof(xfs_attr_leaf_entry_t) in xfs_attr_leaf_add_work()
1178 if (be16_to_cpu(map->base) == tmp) { in xfs_attr_leaf_add_work()
1428 int lastdelta, foundit, tmp; in xfs_attr_leaf_figure_balance() local
1462 tmp = totallen + sizeof(*entry) + in xfs_attr_leaf_figure_balance()
1467 if (XFS_ATTR_ABS(half - tmp) > lastdelta) in xfs_attr_leaf_figure_balance()
1469 lastdelta = XFS_ATTR_ABS(half - tmp); in xfs_attr_leaf_figure_balance()
1470 totallen = tmp; in xfs_attr_leaf_figure_balance()
1486 tmp = totallen + sizeof(*entry) + xfs_attr_leaf_entsize(leaf1, in xfs_attr_leaf_figure_balance()
1488 if (XFS_ATTR_ABS(half - tmp) > lastdelta) in xfs_attr_leaf_figure_balance()
1490 lastdelta = XFS_ATTR_ABS(half - tmp); in xfs_attr_leaf_figure_balance()
1491 totallen = tmp; in xfs_attr_leaf_figure_balance()
1658 int tablesize, tmp, i; in xfs_attr_leaf_remove() local
1684 tmp = be16_to_cpu(map->size); in xfs_attr_leaf_remove()
1703 } else if (be16_to_cpu(map->size) < tmp) { in xfs_attr_leaf_remove()
1704 tmp = be16_to_cpu(map->size); in xfs_attr_leaf_remove()
1758 tmp = (be16_to_cpu(hdr->count) - args->index) in xfs_attr_leaf_remove()
1760 memmove((char *)entry, (char *)(entry+1), tmp); in xfs_attr_leaf_remove()
1763 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr_leaf_remove()
1774 tmp = XFS_LBSIZE(mp); in xfs_attr_leaf_remove()
1781 if (be16_to_cpu(entry->nameidx) < tmp) in xfs_attr_leaf_remove()
1782 tmp = be16_to_cpu(entry->nameidx); in xfs_attr_leaf_remove()
1784 hdr->firstused = cpu_to_be16(tmp); in xfs_attr_leaf_remove()
1787 tmp - XFS_ATTR_LEAF_NAME_ALIGN); in xfs_attr_leaf_remove()
1799 tmp = sizeof(xfs_attr_leaf_hdr_t); in xfs_attr_leaf_remove()
1800 tmp += be16_to_cpu(leaf->hdr.count) * sizeof(xfs_attr_leaf_entry_t); in xfs_attr_leaf_remove()
1801 tmp += be16_to_cpu(leaf->hdr.usedbytes); in xfs_attr_leaf_remove()
1802 return(tmp < mp->m_attr_magicpct); /* leaf is < 37% full */ in xfs_attr_leaf_remove()
2088 int desti, tmp, i; in xfs_attr_leaf_moveents() local
2121 tmp = be16_to_cpu(hdr_d->count) - start_d; in xfs_attr_leaf_moveents()
2122 tmp *= sizeof(xfs_attr_leaf_entry_t); in xfs_attr_leaf_moveents()
2125 memmove((char *)entry_d, (char *)entry_s, tmp); in xfs_attr_leaf_moveents()
2138 tmp = xfs_attr_leaf_entsize(leaf_s, start_s + i); in xfs_attr_leaf_moveents()
2146 memset(xfs_attr_leaf_name(leaf_s, start_s + i), 0, tmp); in xfs_attr_leaf_moveents()
2147 be16_add_cpu(&hdr_s->usedbytes, -tmp); in xfs_attr_leaf_moveents()
2155 be16_add_cpu(&hdr_d->firstused, -tmp); in xfs_attr_leaf_moveents()
2161 ASSERT(be16_to_cpu(entry_d->nameidx) + tmp in xfs_attr_leaf_moveents()
2164 xfs_attr_leaf_name(leaf_s, start_s + i), tmp); in xfs_attr_leaf_moveents()
2165 ASSERT(be16_to_cpu(entry_s->nameidx) + tmp in xfs_attr_leaf_moveents()
2167 memset(xfs_attr_leaf_name(leaf_s, start_s + i), 0, tmp); in xfs_attr_leaf_moveents()
2168 be16_add_cpu(&hdr_s->usedbytes, -tmp); in xfs_attr_leaf_moveents()
2169 be16_add_cpu(&hdr_d->usedbytes, tmp); in xfs_attr_leaf_moveents()
2172 tmp = be16_to_cpu(hdr_d->count) in xfs_attr_leaf_moveents()
2175 ASSERT(be16_to_cpu(hdr_d->firstused) >= tmp); in xfs_attr_leaf_moveents()
2185 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr_leaf_moveents()
2187 ASSERT(((char *)entry_s + tmp) <= in xfs_attr_leaf_moveents()
2189 memset((char *)entry_s, 0, tmp); in xfs_attr_leaf_moveents()
2195 tmp = be16_to_cpu(hdr_s->count) - count; in xfs_attr_leaf_moveents()
2196 tmp *= sizeof(xfs_attr_leaf_entry_t); in xfs_attr_leaf_moveents()
2199 memmove((char *)entry_d, (char *)entry_s, tmp); in xfs_attr_leaf_moveents()
2201 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr_leaf_moveents()
2203 ASSERT(((char *)entry_s + tmp) <= in xfs_attr_leaf_moveents()
2205 memset((char *)entry_s, 0, tmp); in xfs_attr_leaf_moveents()
2845 int error, count, size, tmp, i; in xfs_attr_leaf_inactive() local
2902 tmp = xfs_attr_leaf_freextent(trans, dp, in xfs_attr_leaf_inactive()
2906 error = tmp; /* save only the 1st errno */ in xfs_attr_leaf_inactive()