Lines Matching defs:metadata

14 #define	DM_MSG_PREFIX		"zoned metadata"
34 * The overall resulting metadata format is:
38 * All metadata blocks are stored in conventional zones, starting from
54 /* The number of metadata blocks, including this super block */
99 * Chunk mapping table metadata: 512 8-bytes entries per 4KB block.
107 * Meta data block descriptor (for cached metadata blocks).
130 * Super block information (one per metadata set).
141 * In-memory metadata.
372 * Lock/unlock metadata access. This is a "read" lock on a semaphore
373 * that prevents metadata flush from running while metadata are being
374 * modified. The actual metadata write mutual exclusion is achieved with
390 * of dmz_flush_metadata as well as metadata modification in reclaim
404 * Allocate a metadata block.
450 * Free a metadata block.
461 * Insert a metadata block in the rbtree.
482 * Lookup a metadata block in the rbtree. If the block is found, increment
535 * Read an uncached metadata block from disk and add it to the cache.
592 * Free metadata blocks.
618 * For mblock shrinker: get the number of unused metadata blocks in the cache.
629 * For mblock shrinker: scan unused metadata blocks and shrink the cache.
645 * Release a metadata block.
671 * Get a metadata block from the rbtree. If the block
705 * Mark a metadata block dirty.
716 * Issue a metadata block write BIO.
748 * Read/write a metadata block.
779 * Write super block of the specified metadata set.
803 * The metadata always references the absolute block address,
828 * Write dirty metadata blocks to the specified set.
871 * Log dirty metadata blocks.
896 * Flush dirty metadata blocks.
911 * Make sure that metadata blocks are stable before logging: take
912 * the write lock on the metadata semaphore to prevent target BIOs
913 * from modifying metadata.
934 /* If there are no dirty metadata blocks, just flush the device cache */
941 * The primary metadata set is still clean. Keep it this way until
951 * in the primary metadata set.
1083 dmz_dev_err(dev, "Invalid number of metadata blocks");
1194 * Recover a metadata set.
1214 /* Copy metadata blocks */
1346 "Tertiary super block zone %u not marked as metadata zone",
1375 struct dmz_metadata *zmd = dev->metadata;
1434 * as metadata zone.
1508 dev->metadata = zmd;
2287 dmz_zmd_warn(zmd, "Zone %u has metadata", zone->id);
2793 * Cleanup the zoned metadata resources.
2880 * Initialize the zoned metadata.
2883 struct dmz_metadata **metadata,
2926 /* Set metadata zones starting from sb_zone */
2931 "metadata zone %u not present", i);
2937 "metadata zone %d is not random", i);
2952 * the cache to add 512 more metadata blocks.
2963 dmz_zmd_err(zmd, "Register metadata cache shrinker failed");
2967 dmz_zmd_info(zmd, "DM-Zoned metadata version %d", zmd->sb_version);
2973 dmz_zmd_debug(zmd, " %u metadata zones",
2990 dmz_zmd_debug(zmd, "%u metadata blocks per set (%u max cache)",
2997 *metadata = zmd;
3003 *metadata = NULL;
3009 * Cleanup the zoned metadata resources.