Searched refs:zmd (Results 1 – 4 of 4) sorted by relevance
/linux-6.6.21/drivers/md/ |
D | dm-zoned-metadata.c | 207 #define dmz_zmd_info(zmd, format, args...) \ argument 208 DMINFO("(%s): " format, (zmd)->label, ## args) 210 #define dmz_zmd_err(zmd, format, args...) \ argument 211 DMERR("(%s): " format, (zmd)->label, ## args) 213 #define dmz_zmd_warn(zmd, format, args...) \ argument 214 DMWARN("(%s): " format, (zmd)->label, ## args) 216 #define dmz_zmd_debug(zmd, format, args...) \ argument 217 DMDEBUG("(%s): " format, (zmd)->label, ## args) 221 static unsigned int dmz_dev_zone_id(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_dev_zone_id() argument 229 sector_t dmz_start_sect(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_start_sect() argument [all …]
|
D | dm-zoned-reclaim.c | 62 struct dmz_metadata *zmd = zrc->metadata; in dmz_reclaim_align_wp() local 80 dmz_start_sect(zmd, zone) + dmz_blk2sect(wp_block), in dmz_reclaim_align_wp() 120 struct dmz_metadata *zmd = zrc->metadata; in dmz_reclaim_copy() local 132 end_block = dmz_zone_nr_blocks(zmd); in dmz_reclaim_copy() 133 src_zone_block = dmz_start_block(zmd, src_zone); in dmz_reclaim_copy() 134 dst_zone_block = dmz_start_block(zmd, dst_zone); in dmz_reclaim_copy() 149 ret = dmz_first_valid_block(zmd, src_zone, &block); in dmz_reclaim_copy() 200 struct dmz_metadata *zmd = zrc->metadata; in dmz_reclaim_buf() local 204 dmz_metadata_label(zmd), zrc->dev_idx, in dmz_reclaim_buf() 213 dmz_lock_flush(zmd); in dmz_reclaim_buf() [all …]
|
D | dm-zoned.h | 83 #define dmz_bio_chunk(zmd, bio) ((bio)->bi_iter.bi_sector >> \ argument 84 dmz_zone_nr_sectors_shift(zmd)) 85 #define dmz_chunk_block(zmd, b) ((b) & (dmz_zone_nr_blocks(zmd) - 1)) argument 193 struct dmz_metadata **zmd, const char *devname); 194 void dmz_dtr_metadata(struct dmz_metadata *zmd); 195 int dmz_resume_metadata(struct dmz_metadata *zmd); 197 void dmz_lock_map(struct dmz_metadata *zmd); 198 void dmz_unlock_map(struct dmz_metadata *zmd); 199 void dmz_lock_metadata(struct dmz_metadata *zmd); 200 void dmz_unlock_metadata(struct dmz_metadata *zmd); [all …]
|
D | dm-zoned-target.c | 172 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_read() local 173 sector_t chunk_block = dmz_chunk_block(zmd, dmz_bio_block(bio)); in dmz_handle_read() 186 dmz_metadata_label(zmd), in dmz_handle_read() 187 (unsigned long long)dmz_bio_chunk(zmd, bio), in dmz_handle_read() 200 ret = dmz_block_valid(zmd, zone, chunk_block); in dmz_handle_read() 215 ret = dmz_block_valid(zmd, bzone, chunk_block); in dmz_handle_read() 254 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_direct_write() local 270 ret = dmz_validate_blocks(zmd, zone, chunk_block, nr_blocks); in dmz_handle_direct_write() 272 ret = dmz_invalidate_blocks(zmd, bzone, chunk_block, nr_blocks); in dmz_handle_direct_write() 287 struct dmz_metadata *zmd = dmz->metadata; in dmz_handle_buffered_write() local [all …]
|