Searched refs:spares (Results 1 - 14 of 14) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/dbinc/
H A Dhash.h100 * The spares table indicates the page number at which each doubling begins.
104 #define BS_TO_PAGE(bucket, spares) \
105 ((bucket) + (spares)[__db_log2((bucket) + 1)])
106 #define BUCKET_TO_PAGE(I, B) (BS_TO_PAGE((B), (I)->hdr->spares))
H A Ddb_upgrade.h68 u_int32_t spares[NCACHED]; member in struct:_hashmeta31
157 u_int32_t spares[NCACHED30]; member in struct:_hashmeta30
236 u_int32_t spares[NCACHED2X]; member in struct:hashhdr
H A Ddb_page.h138 u_int32_t spares[NCACHED]; member in struct:_hashmeta33
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/hash/
H A Dhash_upgrade.c81 * We now have to convert the spares array. The old spares array
83 * the bucket that begins the next doubling. The new spares array
87 o_spares = oldmeta->spares;
88 n_spares = newmeta.spares;
89 max_entry = __db_log2(maxb + 1); /* highest spares entry in use */
144 last_desired = BS_TO_PAGE(meta->high_mask, meta->spares);
191 memmove(newmeta->spares, oldmeta->spares, sizeof(oldmeta->spares));
[all...]
H A Dhash_open.c300 * meta-data header (spares[0]).
302 meta->spares[0] = pgno + 1;
306 meta->spares[i] = meta->spares[0];
308 meta->spares[i] = PGNO_INVALID;
503 meta->spares[0] = mmeta->last_pgno + 1;
504 for (i = 0; i < NCACHED && meta->spares[i] != PGNO_INVALID; i++)
505 meta->spares[i] = meta->spares[0];
519 &LSN(mmeta), 0, &LSN(mmeta), meta->spares[
[all...]
H A Dhash_verify.c148 /* spares array */
149 for (i = 0; m->spares[i] != 0 && i < NCACHED; i++) {
152 * spares entry; we want to ensure that it's always less
156 if (BS_TO_PAGE(mbucket, m->spares) > vdp->last_pgno) {
158 "Page %lu: spares array entry %d is invalid",
447 * Loop through them, as far as the spares array defines them,
451 * that the spares array is sane.
454 spares_entry < NCACHED && m->spares[spares_entry] != 0; bucket++) {
455 pgno = BS_TO_PAGE(bucket, m->spares);
548 pgno = BS_TO_PAGE(bucket, m->spares);
[all...]
H A Dhash_rec.c748 * Now we need to fix up the spares array. Each entry in the
749 * spares array indicates the beginning page number for the
751 * spares array is invalid, if we never reclaim pages then
752 * we have to allocate the pages to the spares array in both
756 hcp->hdr->spares[__db_log2(argp->bucket + 1) + 1] == PGNO_INVALID) {
758 hcp->hdr->spares[__db_log2(argp->bucket + 1) + 1] =
763 hcp->hdr->spares[
1314 * Now we need to fix up the spares array. Each entry in the
1315 * spares array indicates the beginning page number for the
1317 * spares arra
[all...]
H A Dhash_stat.c416 * bucket) until the corresponding spares array entries
422 hcp->hdr->spares[spares_entry] == 0)
H A Dhash.c1170 if (!new_double || hcp->hdr->spares[logn + 1] != PGNO_INVALID) {
1213 if (new_double && hcp->hdr->spares[logn + 1] == PGNO_INVALID) {
1218 * above is the first page allocated. The entry in spares is
1230 hcp->hdr->spares[logn + 1] =
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/db_dump185/
H A Ddb_dump185.c70 int32_t spares[NCACHED];/* spare pages for overflow */ member in struct:hashhdr186
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/md/
H A Dmd.c1137 * for spares (which don't need an event count) */
1539 * spares (which don't need an event count) */
1763 /* skip spares and non-functional disks */
1808 if (rdev->raid_disk < 0) /* skip spares */
2142 * if we are allowed to, skip spares which already
2195 /* just a clean<-> dirty transition, possibly leave spares alone,
2197 * spares after all
2203 /* If the array is degraded, then skipping spares is both
2208 * Pointless because if there are any spares to skip,
5137 * to add "hot spares"
6996 int spares = 0; local
7096 int spares = 0; local
[all...]
H A Draid5.c5520 int spares = 0; local
5533 spares++;
5535 if (spares - mddev->degraded < mddev->delta_disks - conf->max_degraded)
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/db/
H A Ddb_pr.c398 __db_msgadd(env, &mb, "%lu ", (u_long)h->spares[i]);
H A Ddb_vrfy.c1742 pgno = BS_TO_PAGE(bucket, hmeta->spares);

Completed in 161 milliseconds