Lines Matching refs:dst_set
1178 static int dmz_recover_mblocks(struct dmz_metadata *zmd, unsigned int dst_set) in dmz_recover_mblocks() argument
1180 unsigned int src_set = dst_set ^ 0x1; in dmz_recover_mblocks()
1184 dmz_dev_warn(zmd->sb[dst_set].dev, in dmz_recover_mblocks()
1185 "Metadata set %u invalid: recovering", dst_set); in dmz_recover_mblocks()
1187 if (dst_set == 0) in dmz_recover_mblocks()
1202 ret = dmz_rdwr_block(zmd->sb[dst_set].dev, REQ_OP_WRITE, in dmz_recover_mblocks()
1203 zmd->sb[dst_set].block + i, page); in dmz_recover_mblocks()
1209 if (!zmd->sb[dst_set].mblk) { in dmz_recover_mblocks()
1210 zmd->sb[dst_set].mblk = dmz_alloc_mblock(zmd, 0); in dmz_recover_mblocks()
1211 if (!zmd->sb[dst_set].mblk) { in dmz_recover_mblocks()
1215 zmd->sb[dst_set].sb = zmd->sb[dst_set].mblk->data; in dmz_recover_mblocks()
1218 ret = dmz_write_sb(zmd, dst_set); in dmz_recover_mblocks()