super.c (65d45231b56efb3db51eb441e2c68f8252ecdd12) super.c (dc9d98d621bdce0552997200ce855659875a5c9f)
1/*
2 * bcache setup/teardown code, and some metadata io - read a superblock and
3 * figure out what to do with it.
4 *
5 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com>
6 * Copyright 2012 Google, Inc.
7 */
8

--- 370 unchanged lines hidden (view full) ---

379 bch_bio_map(bio, c->uuids);
380
381 bch_submit_bbio(bio, c, k, i);
382
383 if (!(rw & WRITE))
384 break;
385 }
386
1/*
2 * bcache setup/teardown code, and some metadata io - read a superblock and
3 * figure out what to do with it.
4 *
5 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com>
6 * Copyright 2012 Google, Inc.
7 */
8

--- 370 unchanged lines hidden (view full) ---

379 bch_bio_map(bio, c->uuids);
380
381 bch_submit_bbio(bio, c, k, i);
382
383 if (!(rw & WRITE))
384 break;
385 }
386
387 bch_bkey_to_text(buf, sizeof(buf), k);
387 bch_extent_to_text(buf, sizeof(buf), k);
388 pr_debug("%s UUIDs at %s", rw & REQ_WRITE ? "wrote" : "read", buf);
389
390 for (u = c->uuids; u < c->uuids + c->nr_uuids; u++)
391 if (!bch_is_zero(u->uuid, 16))
392 pr_debug("Slot %zi: %pU: %s: 1st: %u last: %u inv: %u",
393 u - c->uuids, u->uuid, u->label,
394 u->first_reg, u->last_reg, u->invalidated);
395

--- 1707 unchanged lines hidden ---
388 pr_debug("%s UUIDs at %s", rw & REQ_WRITE ? "wrote" : "read", buf);
389
390 for (u = c->uuids; u < c->uuids + c->nr_uuids; u++)
391 if (!bch_is_zero(u->uuid, 16))
392 pr_debug("Slot %zi: %pU: %s: 1st: %u last: %u inv: %u",
393 u - c->uuids, u->uuid, u->label,
394 u->first_reg, u->last_reg, u->invalidated);
395

--- 1707 unchanged lines hidden ---