| /linux/drivers/md/dm-vdo/ |
| H A D | logical-zone.c | 41 struct logical_zones *zones = context; in get_thread_id_for_zone() local 43 return zones->zones[zone_number].thread_id; in get_thread_id_for_zone() 48 * @zones: The logical_zones to which this zone belongs. 51 static int initialize_zone(struct logical_zones *zones, zone_count_t zone_number) in initialize_zone() argument 54 struct vdo *vdo = zones->vdo; in initialize_zone() 55 struct logical_zone *zone = &zones->zones[zone_number]; in initialize_zone() 63 zone->next = &zones->zones[zone_numbe in initialize_zone() 89 struct logical_zones *zones; vdo_make_logical_zones() local 128 vdo_free_logical_zones(struct logical_zones * zones) vdo_free_logical_zones() argument 172 struct logical_zones *zones = context; drain_logical_zone() local 179 vdo_drain_logical_zones(struct logical_zones * zones,const struct admin_state_code * operation,struct vdo_completion * parent) vdo_drain_logical_zones() argument 201 vdo_resume_logical_zones(struct logical_zones * zones,struct vdo_completion * parent) vdo_resume_logical_zones() argument [all...] |
| H A D | dedupe.c | 296 /* The number of zones */ 298 /* The hash zones themselves */ 299 struct hash_zone zones[] __counted_by(zone_count); member 2040 static void close_index(struct hash_zones *zones) in close_index() argument 2041 __must_hold(&zones->lock) in close_index() 2049 zones->index_state = IS_CHANGING; in close_index() 2051 spin_unlock(&zones->lock); in close_index() 2052 result = uds_close_index(zones->index_session); in close_index() 2056 spin_lock(&zones->lock); in close_index() 2057 zones in close_index() 2062 open_index(struct hash_zones * zones) open_index() argument 2117 struct hash_zones *zones = as_hash_zones(completion); change_dedupe_state() local 2154 report_dedupe_timeouts(struct hash_zones * zones,unsigned int timeouts) report_dedupe_timeouts() argument 2169 initialize_index(struct vdo * vdo,struct hash_zones * zones) initialize_index() argument 2349 initialize_zone(struct vdo * vdo,struct hash_zones * zones,zone_count_t zone_number) initialize_zone() argument 2398 struct hash_zones *zones = context; get_thread_id_for_zone() local 2414 struct hash_zones *zones; vdo_make_hash_zones() local 2455 vdo_finish_dedupe_index(struct hash_zones * zones) vdo_finish_dedupe_index() argument 2467 vdo_free_hash_zones(struct hash_zones * zones) vdo_free_hash_zones() argument 2493 struct hash_zones *zones = container_of(state, struct hash_zones, state); initiate_suspend_index() local 2521 struct hash_zones *zones = context; suspend_index() local 2538 struct hash_zones *zones = context; drain_hash_zone() local 2546 vdo_drain_hash_zones(struct hash_zones * zones,struct vdo_completion * parent) vdo_drain_hash_zones() argument 2552 launch_dedupe_state_change(struct hash_zones * zones) launch_dedupe_state_change() argument 2578 struct hash_zones *zones = context; resume_index() local 2617 vdo_resume_hash_zones(struct hash_zones * zones,struct vdo_completion * parent) vdo_resume_hash_zones() argument 2645 get_index_statistics(struct hash_zones * zones,struct index_statistics * stats) get_index_statistics() argument 2683 vdo_get_dedupe_statistics(struct hash_zones * zones,struct vdo_statistics * stats) vdo_get_dedupe_statistics() argument 2708 vdo_select_hash_zone(struct hash_zones * zones,const struct uds_record_name * name) vdo_select_hash_zone() argument 2754 index_state_to_string(struct hash_zones * zones,enum index_state state) index_state_to_string() argument 2795 vdo_dump_hash_zones(struct hash_zones * zones) vdo_dump_hash_zones() argument 2935 set_target_state(struct hash_zones * zones,enum index_state target,bool change_dedupe,bool dedupe,bool set_create) set_target_state() argument 2957 vdo_get_dedupe_index_state_name(struct hash_zones * zones) vdo_get_dedupe_index_state_name() argument 2969 vdo_message_dedupe_index(struct hash_zones * zones,const char * name) vdo_message_dedupe_index() argument 2988 vdo_set_dedupe_state_normal(struct hash_zones * zones) vdo_set_dedupe_state_normal() argument 2994 vdo_start_dedupe_index(struct hash_zones * zones,bool create_flag) vdo_start_dedupe_index() argument [all...] |
| H A D | dedupe.h | 83 void vdo_free_hash_zones(struct hash_zones *zones); 85 void vdo_drain_hash_zones(struct hash_zones *zones, struct vdo_completion *parent); 87 void vdo_get_dedupe_statistics(struct hash_zones *zones, struct vdo_statistics *stats); 89 struct hash_zone * __must_check vdo_select_hash_zone(struct hash_zones *zones, 92 void vdo_dump_hash_zones(struct hash_zones *zones); 94 const char *vdo_get_dedupe_index_state_name(struct hash_zones *zones); 96 u64 vdo_get_dedupe_index_timeout_count(struct hash_zones *zones); 98 int vdo_message_dedupe_index(struct hash_zones *zones, const char *name); 100 void vdo_set_dedupe_state_normal(struct hash_zones *zones); 102 void vdo_start_dedupe_index(struct hash_zones *zones, bool create_flag); [all …]
|
| H A D | physical-zone.c | 321 * @zones: The physical_zones to which the zone being initialized belongs 325 static int initialize_zone(struct vdo *vdo, struct physical_zones *zones) 328 zone_count_t zone_number = zones->zone_count; in initialize_zone() 329 struct physical_zone *zone = &zones->zones[zone_number]; in initialize_zone() 344 zone->next = &zones->zones[(zone_number + 1) % vdo->thread_config.physical_zone_count]; in initialize_zone() 355 * vdo_make_physical_zones() - Make the physical zones for a vdo. 357 * @zones_ptr: A pointer to hold the zones 363 struct physical_zones *zones; in vdo_make_physical_zones() 326 initialize_zone(struct vdo * vdo,struct physical_zones * zones) initialize_zone() argument 364 struct physical_zones *zones; vdo_make_physical_zones() local 392 vdo_free_physical_zones(struct physical_zones * zones) vdo_free_physical_zones() argument [all...] |
| H A D | logical-zone.h | 21 struct logical_zones *zones; member 56 /* The vdo whose zones these are */ 60 /* The number of zones */ 62 /* The logical zones themselves */ 63 struct logical_zone zones[] __counted_by(zone_count); member 69 void vdo_free_logical_zones(struct logical_zones *zones); 71 void vdo_drain_logical_zones(struct logical_zones *zones, 75 void vdo_resume_logical_zones(struct logical_zones *zones,
|
| H A D | action-manager.c | 18 * struct action - An action to be performed in each of a set of zones. 45 * @zones: The number of zones in which an action is to be applied. 58 zone_count_t zones; member 92 * @zones: The number of zones to which actions will be applied. 103 int vdo_make_action_manager(zone_count_t zones, in vdo_make_action_manager() argument 116 .zones = zones, in vdo_make_action_manager() 181 "%s() called on acting zones' in apply_to_zone() [all...] |
| H A D | action-manager.h | 24 * an optional method to be run on the initiator thread before applying the action to all zones 26 * an optional method to be applied to each of the zones 29 * applied to all zones 37 * A function which is to be applied asynchronously to a set of zones. 79 int __must_check vdo_make_action_manager(zone_count_t zones,
|
| H A D | physical-zone.h | 72 /* The number of zones */ 74 /* The physical zones themselves */ 75 struct physical_zone zones[]; member 97 void vdo_free_physical_zones(struct physical_zones *zones);
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | dm-zoned.rst | 25 host-managed disk with 256 MB zones, dm-zoned memory usage per disk 26 instance is at most 4.5 MB and as little as 5 zones will be used 38 write accesses to the sequential zones of a zoned block device. 39 Conventional zones are used for caching as well as for storing internal 42 in zones with the same size as the zoned block device. These zones will be 43 placed in front of the zones from the zoned block device and will be handled 44 just like conventional zones. 46 The zones of the device(s) are separated into 2 types: 48 1) Metadata zones: these are conventional zones used to store metadata. 49 Metadata zones are not reported as usable capacity to the user. [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | zonefs.rst | 14 write zones of the device must be written sequentially starting from the end 34 space that is divided into zones. A zone is a group of consecutive LBAs and all 35 zones are contiguous (there are no LBA gaps). Zones may have different types. 37 * Conventional zones: there are no access constraints to LBAs belonging to 38 conventional zones. Any read or write access can be executed, similarly to a 40 * Sequential zones: these zones accept random reads but must be written 44 cannot be overwritten. Sequential zones must first be erased using a special 60 Zonefs exposes the zones of a zoned block device as files. The files 61 representing zones are grouped by zone type, which are themselves represented 85 Files representing zones of the same type are grouped together under the same [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | alloc.c | 226 struct mlx4_zone_allocator *zones = kmalloc_obj(*zones); in mlx4_zone_allocator_create() local 228 if (NULL == zones) in mlx4_zone_allocator_create() 231 INIT_LIST_HEAD(&zones->entries); in mlx4_zone_allocator_create() 232 INIT_LIST_HEAD(&zones->prios); in mlx4_zone_allocator_create() 233 spin_lock_init(&zones->lock); in mlx4_zone_allocator_create() 234 zones->last_uid = 0; in mlx4_zone_allocator_create() 235 zones->mask = 0; in mlx4_zone_allocator_create() 236 zones->flags = flags; in mlx4_zone_allocator_create() 238 return zones; in mlx4_zone_allocator_create() 426 struct mlx4_zone_allocator *zones, u32 uid) in __mlx4_find_zone_by_uid() argument [all …]
|
| /linux/drivers/block/null_blk/ |
| H A D | zoned.c | 94 dev->zones = kvmalloc_objs(struct nullb_zone, dev->nr_zones, in null_init_zoned_dev() 96 if (!dev->zones) in null_init_zoned_dev() 103 pr_info("changed the number of conventional zones to %u", in null_init_zoned_dev() 112 /* Max active zones has to be < nbr of seq zones in order to be enforceable */ in null_init_zoned_dev() 118 /* Max open zones has to be <= max active zones */ in null_init_zoned_dev() 121 pr_info("changed the maximum number of open zones to %u\n", in null_init_zoned_dev() 131 zone = &dev->zones[i]; in null_init_zoned_dev() 145 zone = &dev->zones[i]; in null_init_zoned_dev() 189 kvfree(dev->zones); in null_free_zoned_dev() 190 dev->zones = NULL; in null_free_zoned_dev() [all …]
|
| /linux/fs/btrfs/ |
| H A D | zoned.c | 22 /* Maximum number of zones to report per blkdev_report_zones() call */ 43 /* Number of superblock log zones */ 46 /* Default number of max active zones when the device has no limits. */ 50 * Minimum of active zones we need: 52 * - BTRFS_SUPER_MIRROR_MAX zones for superblock mirrors 53 * - 3 zones to ensure at least one zone per SYSTEM, META and DATA block group 81 struct blk_zone *zones = data; in copy_zone_info_cb() local 83 memcpy(&zones[idx], zone, sizeof(*zone)); in copy_zone_info_cb() 88 static int sb_write_pointer(struct block_device *bdev, struct blk_zone *zones, in sb_write_pointer() argument 96 ASSERT(zones[ in sb_write_pointer() 200 emulate_report_zones(struct btrfs_device * device,u64 pos,struct blk_zone * zones,unsigned int nr_zones) emulate_report_zones() argument 225 btrfs_get_dev_zones(struct btrfs_device * device,u64 pos,struct blk_zone * zones,unsigned int * nr_zones) btrfs_get_dev_zones() argument 366 struct blk_zone *zones = NULL; btrfs_get_dev_zone_info() local 814 sb_log_location(struct block_device * bdev,struct blk_zone * zones,int rw,u64 * bytenr_ret) sb_log_location() argument 878 struct blk_zone zones[BTRFS_NR_SB_LOG_ZONES]; btrfs_sb_log_location_bdev() local [all...] |
| /linux/include/uapi/linux/ |
| H A D | blkzoned.h | 23 * enum blk_zone_type - Types of zones allowed in a zoned device. 44 * @BLK_ZONE_COND_EXP_OPEN: The zones was explicitly opened by an 152 * @zones: Space to hold @nr_zones @zones entries on reply. 160 struct blk_zone zones[]; member 168 * @nr_sectors: Total number of sectors of all zones to operate on. 188 * may include zones with the condition @BLK_ZONE_COND_ACTIVE 191 * @BLKRESETZONE: Reset the write pointer of the zones in the specified 194 * @BLKGETNRZONES: Get the total number of zones of the device. 195 * @BLKOPENZONE: Open the zones in the specified sector range. 197 * @BLKCLOSEZONE: Close the zones in the specified sector range. [all …]
|
| /linux/Documentation/power/powercap/ |
| H A D | powercap.rst | 19 Power zones represent different parts of the system, which can be controlled and 23 the system represented by different power zones are hierarchical (that is, one 25 controls), those power zones may also be organized in a hierarchy with one 150 control type called intel-rapl which contains two power zones, intel-rapl:0 and 151 intel-rapl:1, representing CPU packages. Each of these power zones contains 154 the zones and subzones contain energy monitoring attributes (energy_uj, 156 to be applied (the constraints in the 'package' power zones apply to the whole 170 Depending on different power zones, the Intel RAPL technology allows 173 All the zones contain attributes representing the constraint names, 245 enabled (rw): Enable/Disable controls at zone level or for all zones using
|
| /linux/drivers/powercap/ |
| H A D | arm_scmi_powercap.c | 266 /* Un-register children zones first starting from the leaves */ in scmi_powercap_unregister_all_zones() 332 * scmi_zones_register- Register SCMI powercap zones starting from parent zones 335 * @pr: A reference to the root powercap zones descriptors 337 * When registering SCMI powercap zones with the powercap framework we should 338 * take care to always register zones starting from the root ones and to 342 * zones provided by the SCMI platform firmware is built to comply with such 345 * This function, given the set of SCMI powercap zones to register, takes care 346 * to walk the SCMI powercap zones trees up to the root registering any 347 * unregistered parent zone before registering the child zones; at the same 351 * the @registered_zones array backward and unregister all the zones starting [all …]
|
| /linux/fs/zonefs/ |
| H A D | super.c | 3 * Simple file system for zoned block devices exposing zones as files. 59 * For zones that transitioned to the offline or readonly condition, in zonefs_account_active() 108 * open operation on other zones if the drive active zone resources in zonefs_zone_mgmt() 202 * The write pointer of read-only zones is invalid, so we cannot in zonefs_check_zone_condition() 216 /* The write pointer of full zones is invalid. */ in zonefs_check_zone_condition() 227 * offline and readonly zones. 234 /* Offline zones cannot be read nor written */ in zonefs_inode_update_mode() 238 /* Readonly zones cannot be written */ in zonefs_inode_update_mode() 304 * First handle bad zones signaled by hardware. The mount options in zonefs_handle_io_error() 396 * may prevent IO forward progress. Executing the report zones unde in __zonefs_io_error() 850 struct blk_zone *zones; global() member [all...] |
| /linux/block/ |
| H A D | blk-zoned.c | 172 * The condition of a conventional, readonly and offline zones in disk_zone_set_cond() 243 * blkdev_report_zones - Get zones information 245 * @sector: Sector from which to report zones 246 * @nr_zones: Maximum number of zones to report 253 * To report all zones in a device starting from @sector, the BLK_ALL_ZONES 255 * Returns the number of zones reported by the device, or a negative errno 283 * blkdev_zone_mgmt - Execute a zone management operation on a range of zones 285 * @op: Operation to be performed on the zones 291 * Perform the specified operation on the range of zones specified by 293 * is valid, but the specified range should not contain conventional zones in blkdev_zone_mgmt() 346 struct blk_zone __user *zones; global() member [all...] |
| /linux/fs/xfs/ |
| H A D | xfs_zone_alloc.c | 93 * add the zones to the right buckets before the file systems becomes in xfs_zone_account_reclaimable() 121 * and wake up GC which might be waiting for zones to reclaim. in xfs_zone_account_reclaimable() 142 * Check if we have any zones that can be reclaimed by looking at the entry 399 * Don't add open zones to the reclaimable buckets. The I/O completion in xfs_zone_free_blocks() 453 * Pick the free zone with lowest index. Zones in the beginning of the in xfs_open_zone() 641 * instead of trying to open new zones for them or spread them to the least 676 * Try to fill up open zones with matching temperature if available. It in xfs_select_zone_nowait() 678 * activate empty zones when it is statistically better to separate in xfs_select_zone_nowait() 797 * GC only steals open zones at mount time, so no GC zones in xfs_get_cached_zone() [all...] |
| /linux/drivers/md/ |
| H A D | dm-zoned-metadata.c | 32 * followed on disk by the mapping table of chunks to zones and the bitmap 38 * All metadata blocks are stored in conventional zones, starting from 57 /* The number of sequential zones reserved for reclaim */ 175 struct xarray zones; member 300 return xa_load(&zmd->zones, zone_id); in dmz_get() 311 if (xa_insert(&zmd->zones, zone_id, zone, GFP_KERNEL)) { in dmz_insert() 1066 dmz_dev_err(dev, "Invalid number of reserved sequential zones"); in dmz_check_sb() 1371 * Devices that have zones with a capacity smaller than the zone size in dmz_init_zone() 1409 * Tertiary superblock zones are always at the in dmz_init_zone() 1445 * Free zones descriptors. [all …]
|
| /linux/fs/pstore/ |
| H A D | zone.c | 4 * allocated zones that are then mapped and flushed into a single 92 * @kpszs: kmsg dump storage zones 95 * @fpszs: ftrace storage zones 256 /* flush dirty zones nicely */ in psz_zone_write() 281 static int psz_flush_dirty_zones(struct pstore_zone **zones, unsigned int cnt) in psz_flush_dirty_zones() argument 286 if (!zones) in psz_flush_dirty_zones() 290 zone = zones[i]; in psz_flush_dirty_zones() 569 struct pstore_zone **zones, unsigned int cnt) in psz_recover_zones() argument 575 if (!zones) in psz_recover_zones() 579 zone = zones[i]; in psz_recover_zones() [all …]
|
| /linux/sound/soc/ |
| H A D | soc-jack.c | 80 * snd_soc_jack_add_zones - Associate voltage zones with jack 83 * @count: Number of zones 84 * @zones: Array of zones 86 * After this function has been called the zones specified in the 90 struct snd_soc_jack_zone *zones) in snd_soc_jack_add_zones() argument 95 INIT_LIST_HEAD(&zones[i].list); in snd_soc_jack_add_zones() 96 list_add(&(zones[i].list), &jack->jack_zones); in snd_soc_jack_add_zones() 104 * the type of jack from the zones declared in the jack type 110 * the type of jack from the already declared jack zones [all...] |
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | open-chapter.c | 20 * open chapter space. Records are assigned to zones based on their record name. Within each zone, 41 * different number of zones than previously, so the records must be parcelled out to their new 42 * zones. In addition, depending on the distribution of record names, a new zone may have more 238 /* The record arrays in the zones are 1-based. */ in fill_delta_chapter_index() 311 open_chapter = index->zones[z]->open_chapter; in uds_save_open_chapter() 324 open_chapter = index->zones[z]->open_chapter; in uds_save_open_chapter() 362 * Track which zones cannot accept any more records. If the open chapter had a different in load_version20() 363 * number of zones previously, some new zones may have more records than they have space in load_version20() 392 open_chapter = index->zones[zon in load_version20() [all...] |
| H A D | index.h | 21 * The index is divided into a number of independent zones and assigns each request to a zone based 22 * on its name. Most sub-components are similarly divided into zones as well so that requests in 23 * each zone usually operate without interference or coordination between zones. 45 struct index_zone **zones; member
|
| /linux/Documentation/admin-guide/blockdev/ |
| H A D | zoned_loop.rst | 24 number of conventional zones can be created. The storage for each zone of the 40 machine. That is, zones can be empty, implicitly opened, explicitly opened, 42 maximum number of open and active zones. 80 conv_zones Total number of conventioanl zones starting from 83 max_open_zones Maximum number of open sequential write required zones 128 state of the device zones: the device zones are restored to their last state 135 base directory containing the backing files of the device zones must be deleted. 140 The following sequence of commands creates a 2GB zoned device with zones of 64
|