Lines Matching defs:index
79 * enough to hold 2 index blocks and 2 labels. The minimum index
97 * On media label format consists of two index blocks followed
100 * active index and the next one to write, while labels are
174 /* sanity check the index against expected values */
227 /* pick the best index... */
243 * In order to probe for and validate namespace index blocks we
245 * size of the labels until we validate the index blocks.
310 * @idx: namespace_index index
311 * @nsindex_out: on return set to the currently active namespace index
312 * @free: on return set to the free label bitmap in the index
452 * We need to determine the maximum index area as this is the section
459 * possible namespace index size.
493 /* Read the index data */
498 /* Validate index data, if not valid assume all labels are invalid */
503 /* Record our index values */
506 /* Copy "current" index on top of the "next" index */
659 static int nd_label_write_index(struct nvdimm_drvdata *ndd, int index, u32 seq,
668 nsindex = to_namespace_index(ndd, index);
683 nd_label_next_nsindex(index))
715 /* copy the index we just wrote to the new 'next' */
716 WARN_ON(index != ndd->ns_next);
905 /* allocate and write the label to the staging (next) index */
946 /* update index */
1024 /* no index || no labels == nothing to delete */