Home
last modified time | relevance | path

Searched full:zone (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/linux/drivers/block/null_blk/
H A Dzoned.c27 struct nullb_zone *zone) in null_init_zone_lock() argument
30 spin_lock_init(&zone->spinlock); in null_init_zone_lock()
32 mutex_init(&zone->mutex); in null_init_zone_lock()
36 struct nullb_zone *zone) in null_lock_zone() argument
39 spin_lock_irq(&zone->spinlock); in null_lock_zone()
41 mutex_lock(&zone->mutex); in null_lock_zone()
45 struct nullb_zone *zone) in null_unlock_zone() argument
48 spin_unlock_irq(&zone->spinlock); in null_unlock_zone()
50 mutex_unlock(&zone->mutex); in null_unlock_zone()
57 struct nullb_zone *zone; in null_init_zoned_dev() local
[all …]
/linux/fs/pstore/
H A Dzone.c26 * struct psz_buffer - header of zone to flush to storage
31 * @data: zone data.
66 * @off: zone offset of storage
67 * @type: front-end type for this zone
68 * @name: front-end name for this zone
69 * @buffer: pointer to data buffer managed by this zone
72 * @should_recover: whether this zone should recover from storage
75 * zone structure in memory.
90 * struct psz_context - all about running state of pstore/zone
93 * @ppsz: pmsg storage zone
[all …]
/linux/block/
H A Dblk-zoned.c43 * Internal and compact representation of enum blk_zone_cond values for zone
45 * bits as the zone type.
60 /* Conventional zone. */
119 * Combine an enum blk_zone_condition and zone flags into a zones_state array
140 * Per-zone write plug. in blk_zone_set_cond()
143 * zone write plugs. in blk_zone_set_cond()
146 * @rcu_head: RCU head to free zone write plugs with an RCU grace period. in blk_zone_set_cond()
149 * @ref: Zone write plug reference counter. A zone write plug reference is in blk_zone_set_cond()
155 * reference is dropped whenever the zone o in blk_zone_set_cond()
354 blkdev_copy_zone_to_user(struct blk_zone * zone,unsigned int idx,void * data) blkdev_copy_zone_to_user() argument
490 disk_zone_is_last(struct gendisk * disk,struct blk_zone * zone) disk_zone_is_last() argument
796 blk_zone_wp_offset(struct blk_zone * zone) blk_zone_wp_offset() argument
820 disk_zone_wplug_sync_wp_offset(struct gendisk * disk,struct blk_zone * zone) disk_zone_wplug_sync_wp_offset() argument
853 disk_report_zone(struct gendisk * disk,struct blk_zone * zone,unsigned int idx,struct blk_report_zones_args * args) disk_report_zone() argument
883 blkdev_report_zone_cb(struct blk_zone * zone,unsigned int idx,void * data) blkdev_report_zone_cb() argument
891 blkdev_report_zone_fallback(struct block_device * bdev,sector_t sector,struct blk_zone * zone) blkdev_report_zone_fallback() argument
937 blkdev_get_zone_info(struct block_device * bdev,sector_t sector,struct blk_zone * zone) blkdev_get_zone_info() argument
1050 struct blk_zone zone; blkdev_report_zones_cached() local
2134 blk_revalidate_zone_cond(struct blk_zone * zone,unsigned int idx,struct blk_revalidate_zone_args * args) blk_revalidate_zone_cond() argument
2178 blk_revalidate_conv_zone(struct blk_zone * zone,unsigned int idx,struct blk_revalidate_zone_args * args) blk_revalidate_conv_zone() argument
2197 blk_revalidate_seq_zone(struct blk_zone * zone,unsigned int idx,struct blk_revalidate_zone_args * args) blk_revalidate_seq_zone() argument
2243 blk_revalidate_zone_cb(struct blk_zone * zone,unsigned int idx,void * data) blk_revalidate_zone_cb() argument
[all...]
/linux/include/uapi/linux/
H A Dblkzoned.h25 * @BLK_ZONE_TYPE_CONVENTIONAL: The zone has no write pointer and can be writen
26 * randomly. Zone reset has no effect on the zone.
27 * @BLK_ZONE_TYPE_SEQWRITE_REQ: The zone must be written sequentially
28 * @BLK_ZONE_TYPE_SEQWRITE_PREF: The zone can be written non-sequentially
39 * enum blk_zone_cond - Condition [state] of a zone in a zoned device.
41 * @BLK_ZONE_COND_NOT_WP: The zone has no write pointer, it is conventional.
42 * @BLK_ZONE_COND_EMPTY: The zone is empty.
43 * @BLK_ZONE_COND_IMP_OPEN: The zone is open, but not explicitly opened.
45 * OPEN ZONE command.
46 * @BLK_ZONE_COND_CLOSED: The zone was [explicitly] closed after writing.
[all …]
/linux/drivers/block/
H A Dzloop.c7 * zone as backing storage.
72 /* Arbitrary limit on the zone size (16GB). */
107 * Zone descriptor.
177 * Open an already open zone. This is mostly a no-op, except for the imp open ->
178 * exp open condition change that may happen. We also move a zone at the tail of
180 * implicitly close one open zone, we can do so in LRU order.
183 struct zloop_zone *zone) in zloop_lru_rotate_open_zone() argument
187 list_move_tail(&zone->open_zone_entry, in zloop_lru_rotate_open_zone()
194 struct zloop_zone *zone) in zloop_lru_remove_open_zone() argument
196 if (zone in zloop_lru_remove_open_zone()
217 struct zloop_zone *zone; zloop_close_imp_open_zone() local
237 zloop_open_closed_or_empty_zone(struct zloop_device * zlo,struct zloop_zone * zone,bool explicit) zloop_open_closed_or_empty_zone() argument
275 zloop_do_open_zone(struct zloop_device * zlo,struct zloop_zone * zone,bool explicit) zloop_do_open_zone() argument
292 zloop_mark_full(struct zloop_device * zlo,struct zloop_zone * zone) zloop_mark_full() argument
301 zloop_mark_empty(struct zloop_device * zlo,struct zloop_zone * zone) zloop_mark_empty() argument
312 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_update_seq_zone() local
358 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_open_zone() local
383 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_close_zone() local
425 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_reset_zone() local
470 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_finish_zone() local
526 struct zloop_zone *zone = &zlo->zones[rq_zone_no(rq)]; zloop_do_rw() local
580 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_seq_write_prep() local
642 struct zloop_zone *zone; zloop_rw() local
690 zloop_zone_is_active(struct zloop_zone * zone) zloop_zone_is_active() argument
708 struct zloop_zone *zone = &zlo->zones[i]; zloop_record_safe_wps() local
829 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_complete_rq() local
882 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_set_zone_append_sector() local
969 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_report_zones() local
1013 struct zloop_zone *zone = &zlo->zones[i]; zloop_free_disk() local
1053 zloop_get_block_size(struct zloop_device * zlo,struct zloop_zone * zone) zloop_get_block_size() argument
1098 struct zloop_zone *zone = &zlo->zones[zone_no]; zloop_init_zone() local
1377 struct zloop_zone *zone = &zlo->zones[j]; zloop_ctl_add() local
1408 struct zloop_zone *zone = &zlo->zones[i]; zloop_forget_cache() local
[all...]
/linux/Documentation/filesystems/
H A Dzonefs.rst4 ZoneFS - Zone filesystem for Zoned block devices
10 zonefs is a very simple file system exposing each zone of a zoned block device
24 by allowing SSTables to be stored in a zone file similarly to a regular file
26 of the higher level construct "one file is one zone" can help reducing the
34 space that is divided into zones. A zone is a group of consecutive LBAs and all
41 sequentially. Each sequential zone has a write pointer maintained by the
43 to the device. As a result of this write constraint, LBAs in a sequential zone
45 command (zone reset) before rewriting.
61 representing zones are grouped by zone type, which are themselves represented
62 by sub-directories. This file structure is built entirely using zone information
[all …]
/linux/mm/
H A Dshow_mem.c27 static inline void show_node(struct zone *zone) in show_node() argument
30 printk("Node %d ", zone_to_nid(zone)); in show_node()
39 struct zone *zone; in si_mem_available() local
41 for_each_zone(zone) in si_mem_available()
42 wmark_low += low_wmark_pages(zone); in si_mem_available()
99 struct zone *zone = &pgdat->node_zones[zone_type]; in si_meminfo_node() local
100 managed_pages += zone_managed_pages(zone); in si_meminfo_node()
101 if (is_highmem(zone)) { in si_meminfo_node()
102 managed_highpages += zone_managed_pages(zone); in si_meminfo_node()
103 free_highpages += zone_page_state(zone, NR_FREE_PAGES); in si_meminfo_node()
[all …]
H A Dpage_alloc.c12 * Zone balancing, Kanoj Sarcar, SGI, Jan 2000
84 * shuffle the whole zone).
99 /* prevent >1 _updater_ of zone percpu pageset ->high and ->batch fields */
219 struct zone *zone);
282 /* movable_zone is the "real" zone pages in ZONE_MOVABLE are taken from */
302 static bool cond_accept_memory(struct zone *zone, unsigned int order,
323 _deferred_grow_zone(struct zone *zone, unsigne in _deferred_grow_zone()
322 _deferred_grow_zone(struct zone * zone,unsigned int order) _deferred_grow_zone() argument
327 _deferred_grow_zone(struct zone * zone,unsigned int order) _deferred_grow_zone() argument
575 page_outside_zone_boundaries(struct zone * zone,struct page * page) page_outside_zone_boundaries() argument
600 bad_range(struct zone * zone,struct page * page) bad_range() argument
610 bad_range(struct zone * zone,struct page * page) bad_range() argument
721 task_capc(struct zone * zone) task_capc() argument
763 task_capc(struct zone * zone) task_capc() argument
776 account_freepages(struct zone * zone,int nr_pages,int migratetype) account_freepages() argument
794 __add_to_free_list(struct page * page,struct zone * zone,unsigned int order,int migratetype,bool tail) __add_to_free_list() argument
820 move_to_free_list(struct page * page,struct zone * zone,unsigned int order,int old_mt,int new_mt) move_to_free_list() argument
844 __del_page_from_free_list(struct page * page,struct zone * zone,unsigned int order,int migratetype) __del_page_from_free_list() argument
866 del_page_from_free_list(struct page * page,struct zone * zone,unsigned int order,int migratetype) del_page_from_free_list() argument
942 __free_one_page(struct page * page,unsigned long pfn,struct zone * zone,unsigned int order,int migratetype,fpi_t fpi_flags) __free_one_page() argument
1471 free_pcppages_bulk(struct zone * zone,int count,struct per_cpu_pages * pcp,int pindex) free_pcppages_bulk() argument
1522 split_large_buddy(struct zone * zone,struct page * page,unsigned long pfn,int order,fpi_t fpi) split_large_buddy() argument
1545 add_page_to_zone_llist(struct zone * zone,struct page * page,unsigned int order) add_page_to_zone_llist() argument
1554 free_one_page(struct zone * zone,struct page * page,unsigned long pfn,unsigned int order,fpi_t fpi_flags) free_one_page() argument
1594 struct zone *zone = page_zone(page); __free_pages_ok() local
1673 __pageblock_pfn_to_page(unsigned long start_pfn,unsigned long end_pfn,struct zone * zone) __pageblock_pfn_to_page() argument
1714 expand(struct zone * zone,struct page * page,int low,int high,int migratetype) expand() argument
1742 page_del_and_expand(struct zone * zone,struct page * page,int low,int high,int migratetype) page_del_and_expand() argument
1901 __rmqueue_smallest(struct zone * zone,unsigned int order,int migratetype) __rmqueue_smallest() argument
1940 __rmqueue_cma_fallback(struct zone * zone,unsigned int order) __rmqueue_cma_fallback() argument
1946 __rmqueue_cma_fallback(struct zone * zone,unsigned int order) __rmqueue_cma_fallback() argument
1954 __move_freepages_block(struct zone * zone,unsigned long start_pfn,int old_mt,int new_mt) __move_freepages_block() argument
1987 prep_move_freepages_block(struct zone * zone,struct page * page,unsigned long * start_pfn,int * num_free,int * num_movable) prep_move_freepages_block() argument
2037 move_freepages_block(struct zone * zone,struct page * page,int old_mt,int new_mt) move_freepages_block() argument
2111 __move_freepages_block_isolate(struct zone * zone,struct page * page,bool isolate) __move_freepages_block_isolate() argument
2163 pageblock_isolate_and_move_free_pages(struct zone * zone,struct page * page) pageblock_isolate_and_move_free_pages() argument
2168 pageblock_unisolate_and_move_free_pages(struct zone * zone,struct page * page) pageblock_unisolate_and_move_free_pages() argument
2175 boost_watermark(struct zone * zone) boost_watermark() argument
2298 try_to_claim_block(struct zone * zone,struct page * page,int current_order,int order,int start_type,int block_type,unsigned int alloc_flags) try_to_claim_block() argument
2373 __rmqueue_claim(struct zone * zone,int order,int start_migratetype,unsigned int alloc_flags) __rmqueue_claim() argument
2428 __rmqueue_steal(struct zone * zone,int order,int start_migratetype) __rmqueue_steal() argument
2466 __rmqueue(struct zone * zone,unsigned int order,int migratetype,unsigned int alloc_flags,enum rmqueue_mode * mode) __rmqueue() argument
2535 rmqueue_bulk(struct zone * zone,unsigned int order,unsigned long count,struct list_head * list,int migratetype,unsigned int alloc_flags) rmqueue_bulk() argument
2576 decay_pcp_high(struct zone * zone,struct per_cpu_pages * pcp) decay_pcp_high() argument
2615 drain_zone_pages(struct zone * zone,struct per_cpu_pages * pcp) drain_zone_pages() argument
2632 drain_pages_zone(unsigned int cpu,struct zone * zone) drain_pages_zone() argument
2656 struct zone *zone; drain_pages() local
2666 drain_local_pages(struct zone * zone) drain_local_pages() argument
2686 __drain_all_pages(struct zone * zone,bool force_all_cpus) __drain_all_pages() argument
2759 drain_all_pages(struct zone * zone) drain_all_pages() argument
2789 nr_pcp_high(struct per_cpu_pages * pcp,struct zone * zone,int batch,bool free_high) nr_pcp_high() argument
2844 free_frozen_page_commit(struct zone * zone,struct per_cpu_pages * pcp,struct page * page,int migratetype,unsigned int order,fpi_t fpi_flags) free_frozen_page_commit() argument
2953 struct zone *zone; __free_frozen_pages() local
3042 struct zone *zone = folio_zone(folio); free_unref_folios() local
3134 struct zone *zone = page_zone(page); __isolate_free_page() local
3184 struct zone *zone = page_zone(page); __putback_isolated_page() local
3221 rmqueue_buddy(struct zone * preferred_zone,struct zone * zone,unsigned int order,unsigned int alloc_flags,int migratetype) rmqueue_buddy() argument
3274 nr_pcp_alloc(struct per_cpu_pages * pcp,struct zone * zone,int order) nr_pcp_alloc() argument
3326 __rmqueue_pcplist(struct zone * zone,unsigned int order,int migratetype,unsigned int alloc_flags,struct per_cpu_pages * pcp,struct list_head * list) __rmqueue_pcplist() argument
3372 rmqueue_pcplist(struct zone * preferred_zone,struct zone * zone,unsigned int order,int migratetype,unsigned int alloc_flags) rmqueue_pcplist() argument
3414 rmqueue(struct zone * preferred_zone,struct zone * zone,unsigned int order,gfp_t gfp_flags,unsigned int alloc_flags,int migratetype) rmqueue() argument
3448 reserve_highatomic_pageblock(struct page * page,int order,struct zone * zone) reserve_highatomic_pageblock() argument
3501 struct zone *zone; unreserve_highatomic_pageblock() local
3731 zone_allows_reclaim(struct zone * local_zone,struct zone * zone) zone_allows_reclaim() argument
3737 zone_allows_reclaim(struct zone * local_zone,struct zone * zone) zone_allows_reclaim() argument
3752 alloc_flags_nofragment(struct zone * zone,gfp_t gfp_mask) alloc_flags_nofragment() argument
3804 struct zone *zone; get_page_from_freelist() local
4228 struct zone *zone = page_zone(page); __alloc_pages_direct_compact() local
4331 struct zone *zone; should_compact_retry() local
4506 struct zone *zone; wake_all_kswapds() local
4644 struct zone *zone; should_reclaim_retry() local
5165 struct zone *zone; alloc_pages_bulk_noprof() local
5706 struct zone *zone; nr_free_zone_pages() local
5738 zoneref_set_zone(struct zone * zone,struct zoneref * zoneref) zoneref_set_zone() argument
5751 struct zone *zone; build_zonerefs_node() local
6120 zone_batchsize(struct zone * zone) zone_batchsize() argument
6168 zone_highsize(struct zone * zone,int batch,int cpu_online,int high_fraction) zone_highsize() argument
6264 __zone_set_pageset_high_and_batch(struct zone * zone,unsigned long high_min,unsigned long high_max,unsigned long batch) __zone_set_pageset_high_and_batch() argument
6280 zone_set_pageset_high_and_batch(struct zone * zone,int cpu_online) zone_set_pageset_high_and_batch() argument
6312 setup_zone_pageset(struct zone * zone) setup_zone_pageset() argument
6337 zone_pcp_update(struct zone * zone,int cpu_online) zone_pcp_update() argument
6344 zone_pcp_update_cacheinfo(struct zone * zone,unsigned int cpu) zone_pcp_update_cacheinfo() argument
6368 struct zone *zone; setup_pcp_cacheinfo() local
6381 struct zone *zone; setup_per_cpu_pageset() local
6406 zone_pcp_init(struct zone * zone) zone_pcp_init() argument
6465 struct zone *zone; page_alloc_cpu_dead() local
6496 struct zone *zone; page_alloc_cpu_online() local
6529 struct zone *zone = pgdat->node_zones + i; calculate_totalreserve_pages() local
6589 struct zone *zone = &pgdat->node_zones[i]; setup_per_zone_lowmem_reserve() local
6617 struct zone *zone; __setup_per_zone_wmarks() local
6686 struct zone *zone; setup_per_zone_wmarks() local
6799 struct zone *zone; setup_min_unmapped_ratio() local
6828 struct zone *zone; setup_min_slab_ratio() local
6898 struct zone *zone; percpu_pagelist_high_fraction_sysctl_handler() local
7505 zone_spans_last_pfn(const struct zone * zone,unsigned long start_pfn,unsigned long nr_pages) zone_spans_last_pfn() argument
7544 struct zone *zone; alloc_contig_frozen_pages_noprof() local
7678 zone_pcp_disable(struct zone * zone) zone_pcp_disable() argument
7685 zone_pcp_enable(struct zone * zone) zone_pcp_enable() argument
7692 zone_pcp_reset(struct zone * zone) zone_pcp_reset() argument
7726 struct zone *zone; __offline_isolated_pages() local
7787 add_to_free_list(struct page * page,struct zone * zone,unsigned int order,int migratetype,bool tail) add_to_free_list() argument
7799 break_down_buddy_pages(struct zone * zone,struct page * page,struct page * target,int low,int high,int migratetype) break_down_buddy_pages() argument
7830 struct zone *zone = page_zone(page); take_page_off_buddy() local
7862 struct zone *zone = page_zone(page); put_page_back_buddy() local
7879 has_managed_zone(enum zone_type zone) has_managed_zone() argument
7915 __accept_page(struct zone * zone,unsigned long * flags,struct page * page) __accept_page() argument
7931 struct zone *zone = page_zone(page); accept_page() local
7944 try_to_accept_memory_one(struct zone * zone) try_to_accept_memory_one() argument
7963 cond_accept_memory(struct zone * zone,unsigned int order,int alloc_flags) cond_accept_memory() argument
8004 struct zone *zone = page_zone(page); __free_unaccepted() local
8027 cond_accept_memory(struct zone * zone,unsigned int order,int alloc_flags) cond_accept_memory() argument
[all...]
H A Dvmstat.c40 /* zero numa counters within a zone */
41 static void zero_zone_numa_counters(struct zone *zone) in zero_zone_numa_counters() argument
46 atomic_long_set(&zone->vm_numa_event[item], 0); in zero_zone_numa_counters()
48 per_cpu_ptr(zone->per_cpu_zonestats, cpu)->vm_numa_event[item] in zero_zone_numa_counters()
57 struct zone *zone; in zero_zones_numa_counters() local
59 for_each_populated_zone(zone) in zero_zones_numa_counters()
60 zero_zone_numa_counters(zone); in zero_zones_numa_counters()
162 * Manage combined zone base
173 fold_vm_zone_numa_events(struct zone * zone) fold_vm_zone_numa_events() argument
193 struct zone *zone; fold_vm_numa_events() local
202 calculate_pressure_threshold(struct zone * zone) calculate_pressure_threshold() argument
226 calculate_normal_threshold(struct zone * zone) calculate_normal_threshold() argument
279 struct zone *zone; refresh_zone_stat_thresholds() local
322 set_pgdat_percpu_threshold(pg_data_t * pgdat,int (* calculate_pressure)(struct zone *)) set_pgdat_percpu_threshold() argument
324 struct zone *zone; set_pgdat_percpu_threshold() local
346 __mod_zone_page_state(struct zone * zone,enum zone_stat_item item,long delta) __mod_zone_page_state() argument
436 __inc_zone_state(struct zone * zone,enum zone_stat_item item) __inc_zone_state() argument
492 __dec_zone_state(struct zone * zone,enum zone_stat_item item) __dec_zone_state() argument
561 mod_zone_state(struct zone * zone,enum zone_stat_item item,long delta,int overstep_mode) mod_zone_state() argument
600 mod_zone_page_state(struct zone * zone,enum zone_stat_item item,long delta) mod_zone_page_state() argument
691 mod_zone_page_state(struct zone * zone,enum zone_stat_item item,long delta) mod_zone_page_state() argument
705 struct zone *zone; inc_zone_page_state() local
803 struct zone *zone; refresh_cpu_vm_stats() local
893 struct zone *zone; cpu_vm_stats_fold() local
949 drain_zonestat(struct zone * zone,struct per_cpu_zonestat * pzstats) drain_zonestat() argument
1075 fill_contig_page_info(struct zone * zone,unsigned int suitable_order,struct contig_page_info * info) fill_contig_page_info() argument
1142 extfrag_for_order(struct zone * zone,unsigned int order) extfrag_for_order() argument
1156 fragmentation_index(struct zone * zone,unsigned int order) fragmentation_index() argument
1548 walk_zones_in_node(struct seq_file * m,pg_data_t * pgdat,bool assert_populated,bool nolock,void (* print)(struct seq_file * m,pg_data_t *,struct zone *)) walk_zones_in_node() argument
1550 struct zone *zone; walk_zones_in_node() local
1569 frag_show_print(struct seq_file * m,pg_data_t * pgdat,struct zone * zone) frag_show_print() argument
1594 pagetypeinfo_showfree_print(struct seq_file * m,pg_data_t * pgdat,struct zone * zone) pagetypeinfo_showfree_print() argument
1651 pagetypeinfo_showblockcount_print(struct seq_file * m,pg_data_t * pgdat,struct zone * zone) pagetypeinfo_showblockcount_print() argument
1758 is_zone_first_populated(pg_data_t * pgdat,struct zone * zone) is_zone_first_populated() argument
1773 zoneinfo_show_print(struct seq_file * m,pg_data_t * pgdat,struct zone * zone) zoneinfo_show_print() argument
2076 struct zone *zone; need_update() local
2345 unusable_show_print(struct seq_file * m,pg_data_t * pgdat,struct zone * zone) unusable_show_print() argument
2395 extfrag_show_print(struct seq_file * m,pg_data_t * pgdat,struct zone * zone) extfrag_show_print() argument
[all...]
H A Dmm_init.c85 struct zone *zone; in mminit_verify_zonelist()
92 /* Identify the zone and nodelist */ in mminit_verify_zonelist()
96 zone = &pgdat->node_zones[zoneid]; in mminit_verify_zonelist()
97 if (!populated_zone(zone)) in mminit_verify_zonelist()
103 zone->name); in mminit_verify_zonelist()
106 for_each_zone_zonelist(zone, z, zonelist, zoneid) in mminit_verify_zonelist()
107 pr_cont("%d:%s ", zone_to_nid(zone), zone->name); in mminit_verify_zonelist()
121 "Section %d Node %d Zone in mminit_verify_pageflags_layout()
84 struct zone *zone; mminit_verify_zonelist() local
596 __init_single_page(struct page * page,unsigned long pfn,unsigned long zone,int nid) __init_single_page() argument
761 struct zone *zone = &pgdat->node_zones[zid]; __init_deferred_page() local
822 init_unavailable_range(unsigned long spfn,unsigned long epfn,int zone,int node) init_unavailable_range() argument
847 memmap_init_range(unsigned long size,int nid,unsigned long zone,unsigned long start_pfn,unsigned long zone_end_pfn,enum meminit_context context,struct vmem_altmap * altmap,int migratetype,bool isolate_pageblock) memmap_init_range() argument
915 memmap_init_zone_range(struct zone * zone,unsigned long start_pfn,unsigned long end_pfn,unsigned long * hole_pfn) memmap_init_zone_range() argument
950 struct zone *zone = node->node_zones + j; memmap_init() local
1074 memmap_init_zone_device(struct zone * zone,unsigned long start_pfn,unsigned long nr_pages,struct dev_pagemap * pgmap) memmap_init_zone_device() argument
1285 struct zone *zone = pgdat->node_zones + i; calculate_node_totalpages() local
1345 zone_init_internals(struct zone * zone,enum zone_type idx,int nid,unsigned long remaining_pages) zone_init_internals() argument
1357 zone_init_free_lists(struct zone * zone) zone_init_free_lists() argument
1373 init_currently_empty_zone(struct zone * zone,unsigned long zone_start_pfn,unsigned long size) init_currently_empty_zone() argument
1416 setup_usemap(struct zone * zone) setup_usemap() argument
1431 setup_usemap(struct zone * zone) setup_usemap() argument
1525 struct zone *zone = pgdat->node_zones + z; free_area_init_core_hotplug() local
1544 struct zone *zone = pgdat->node_zones + j; free_area_init_core() local
1695 struct zone *zone = &pgdat->node_zones[zone_type]; check_for_memory() local
1765 int i, nid, zone; free_area_init() local
1956 deferred_init_pages(struct zone * zone,unsigned long pfn,unsigned long end_pfn) deferred_init_pages() argument
1984 deferred_init_memmap_chunk(unsigned long start_pfn,unsigned long end_pfn,struct zone * zone,bool can_resched) deferred_init_memmap_chunk() argument
2024 struct zone *zone = arg; deferred_init_memmap_job() local
2043 struct zone *zone; deferred_init_memmap() local
2107 deferred_grow_zone(struct zone * zone,unsigned int order) deferred_grow_zone() argument
2191 set_zone_contiguous(struct zone * zone) set_zone_contiguous() argument
2221 struct zone *zone, *izone = NULL; pfn_range_intersects_zones() local
2241 struct zone *zone; page_alloc_init_late() local
[all...]
/linux/tools/power/cpupower/lib/
H A Dpowercap.c124 static int sysfs_powercap_get64_val(struct powercap_zone *zone, in sysfs_powercap_get64_val() argument
132 strcat(file, zone->sys_name); in sysfs_powercap_get64_val()
146 int powercap_get_max_energy_range_uj(struct powercap_zone *zone, uint64_t *val) in powercap_get_max_energy_range_uj() argument
148 return sysfs_powercap_get64_val(zone, GET_MAX_ENERGY_RANGE_UJ, val); in powercap_get_max_energy_range_uj()
151 int powercap_get_energy_uj(struct powercap_zone *zone, uint64_t *val) in powercap_get_energy_uj() argument
153 return sysfs_powercap_get64_val(zone, GET_ENERGY_UJ, val); in powercap_get_energy_uj()
156 int powercap_get_max_power_range_uw(struct powercap_zone *zone, uint64_t *val) in powercap_get_max_power_range_uw() argument
158 return sysfs_powercap_get64_val(zone, GET_MAX_POWER_RANGE_UW, val); in powercap_get_max_power_range_uw()
161 int powercap_get_power_uw(struct powercap_zone *zone, uint64_t *val) in powercap_get_power_uw() argument
163 return sysfs_powercap_get64_val(zone, GET_POWER_UW, val); in powercap_get_power_uw()
[all …]
/linux/fs/zonefs/
H A Dsuper.c32 * Get the name of a zone group directory.
48 * Manage the active zone count.
66 * If the zone is active, that is, if it is explicitly open or in zonefs_account_active()
79 /* The zone is not active. If it was, update the active count */ in zonefs_account_active()
87 * Manage the active zone count. Called with zi->i_truncate_mutex held.
97 * Execute a zone management operation.
105 * With ZNS drives, closing an explicitly open zone that has not been in zonefs_zone_mgmt()
106 * written will change the zone state to "closed", that is, the zone in zonefs_zone_mgmt()
108 * open operation on other zones if the drive active zone resources in zonefs_zone_mgmt()
109 * are exceeded, make sure that the zone does not remain active by in zonefs_zone_mgmt()
[all …]
/linux/drivers/md/
H A Ddm-zoned-target.c17 * Zone BIO context.
21 struct dm_zone *zone; member
86 struct dm_zone *zone = bioctx->zone; in dmz_bio_endio() local
88 if (zone) { in dmz_bio_endio()
91 dmz_is_seq(zone)) in dmz_bio_endio()
92 set_bit(DMZ_SEQ_WRITE_ERR, &zone->flags); in dmz_bio_endio()
93 dmz_deactivate_zone(zone); in dmz_bio_endio()
116 static int dmz_submit_bio(struct dmz_target *dmz, struct dm_zone *zone, in dmz_submit_bio() argument
122 struct dmz_dev *dev = zone->dev; in dmz_submit_bio()
134 dmz_start_sect(dmz->metadata, zone) + dmz_blk2sect(chunk_block); in dmz_submit_bio()
[all …]
H A Draid0.c45 pr_debug("md: RAID0 configuration for %s - %d zone%s\n", in dump_zones()
55 pr_debug("md: zone%d=[%s]\n", j, line); in dump_zones()
58 pr_debug(" zone-offset=%10lluKB, device-offset=%10lluKB, size=%10lluKB\n", in dump_zones()
71 struct strip_zone *zone; in create_strip_zones() local
157 /* The first zone must contain all devices, so here we check that in create_strip_zones()
160 zone = &conf->strip_zone[0]; in create_strip_zones()
208 zone->nb_dev = cnt; in create_strip_zones()
209 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
211 curr_zone_end = zone->zone_end; in create_strip_zones()
218 zone = conf->strip_zone + i; in create_strip_zones()
[all …]
/linux/fs/adfs/
H A Dmap.c14 * zone which contains a bitstream made up of variable sized fragments.
30 * large or fragmented files. The first map zone a fragment starts in
32 * from any zone on the disk.
63 * return the map bit offset of the fragment frag_id in the zone dm.
109 * Scan the free space map, for this zone, calculating the total
133 * exist in this zone. in scan_free_map()
159 static int scan_map(struct adfs_sb_info *asb, unsigned int zone, in scan_map() argument
166 dm = asb->s_map + zone; in scan_map()
167 zone = asb->s_map_size; in scan_map()
168 dm_end = asb->s_map + zone; in scan_map()
[all …]
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-zoned.rst54 Data in these zones may be directly mapped to the conventional zone, but
55 later moved to a sequential zone so that the conventional zone can be
65 1) The first block of the first conventional zone found contains the
73 indicates the zone number of the device storing the chunk of data. Each
74 mapping entry may also indicate if the zone number of a conventional
75 zone used to buffer random modification to the data zone.
80 data chunk, a block is always valid only in the data zone mapping the
81 chunk or in the buffer zone of the chunk.
83 For a logical chunk mapped to a conventional zone, all write operations
84 are processed by directly writing to the zone. If the mapping zone is a
[all …]
/linux/include/linux/
H A Dmmzone.h161 #define for_each_free_list(list, zone, order) \
165 (list = &(zone)->free_area[order].free_list[__type], 1); \ in is_migrate_movable()
188 NUMA_INTERLEAVE_HIT, /* interleaver preferred this zone */
815 * zone lock contention and keep cache-hot pages reusing.
904 * faulted, they come from the right zone right away. However, it is
908 * to a different zone. When migration fails - pinning fails.
929 * on different platforms may end up in a movable zone. ZERO_PAGE(0)
932 * memory to the MOVABLE zone, the vmemmap pages are also placed in
933 * such zone. Such pages cannot be really moved around as they are
955 struct zone {
180 for_each_free_list(list,zone,order) global() argument
979 struct zone { global() struct
992 nr_free_highatomiczone global() argument
1003 zone_pgdatzone global() argument
1005 per_cpu_zonestatszone global() argument
1023 zone_start_pfnzone global() argument
1026 pageblock_flagszone global() argument
1083 namezone global() argument
1105 unaccepted_pageszone global() argument
1109 unaccepted_cleanupzone global() argument
1110 flagszone global() argument
1113 lockzone global() argument
1116 trylock_free_pageszone global() argument
1126 percpu_drift_markzone global() argument
1130 compact_cached_free_pfnzone global() argument
1132 compact_cached_migrate_pfnzone global() argument
1133 compact_init_migrate_pfnzone global() argument
1134 compact_init_free_pfnzone global() argument
1144 compact_consideredzone global() argument
1145 compact_defer_shiftzone global() argument
1146 compact_order_failedzone global() argument
1173 vmemmap_tailszone global() argument
1206 zone_managed_pages(const struct zone * zone) zone_managed_pages() argument
1211 zone_cma_pages(struct zone * zone) zone_cma_pages() argument
1220 zone_end_pfn(const struct zone * zone) zone_end_pfn() argument
1225 zone_spans_pfn(const struct zone * zone,unsigned long pfn) zone_spans_pfn() argument
1230 zone_is_initialized(const struct zone * zone) zone_is_initialized() argument
1235 zone_is_empty(const struct zone * zone) zone_is_empty() argument
1377 zone_intersects(const struct zone * zone,unsigned long start_pfn,unsigned long nr_pages) zone_intersects() argument
1416 struct zone *zone; /* Pointer to actual zone */ global() member
1683 zone_idx(zone) global() argument
1686 zone_is_zone_device(const struct zone * zone) zone_is_zone_device() argument
1691 zone_is_zone_device(const struct zone * zone) zone_is_zone_device() argument
1703 managed_zone(const struct zone * zone) managed_zone() argument
1709 populated_zone(const struct zone * zone) populated_zone() argument
1715 zone_to_nid(const struct zone * zone) zone_to_nid() argument
1720 zone_set_nid(struct zone * zone,int nid) zone_set_nid() argument
1725 zone_to_nid(const struct zone * zone) zone_to_nid() argument
1730 zone_set_nid(struct zone * zone,int nid) zone_set_nid() argument
1752 is_highmem(const struct zone * zone) is_highmem() argument
1801 for_each_zone(zone) global() argument
1806 for_each_populated_zone(zone) global() argument
1893 for_each_zone_zonelist_nodemask(zone,z,zlist,highidx,nodemask) global() argument
1899 for_next_zone_zonelist_nodemask(zone,z,highidx,nodemask) global() argument
1915 for_each_zone_zonelist(zone,z,zlist,highidx) global() argument
[all...]
H A Dvmstat.h134 * Zone and node-based page accounting with per cpu differentials.
141 static inline void zone_numa_event_add(long x, struct zone *zone, in zone_numa_event_add() argument
144 atomic_long_add(x, &zone->vm_numa_event[item]); in zone_numa_event_add()
148 static inline unsigned long zone_numa_event_state(struct zone *zone, in zone_numa_event_state() argument
151 return atomic_long_read(&zone->vm_numa_event[item]); in zone_numa_event_state()
161 static inline void zone_page_state_add(long x, struct zone *zone, in zone_page_state_add() argument
164 atomic_long_add(x, &zone->vm_stat[item]); in zone_page_state_add()
216 static inline unsigned long zone_page_state(struct zone *zone, in zone_page_state() argument
219 long x = atomic_long_read(&zone->vm_stat[item]); in zone_page_state()
233 static inline unsigned long zone_page_state_snapshot(struct zone *zone, in zone_page_state_snapshot() argument
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c250 struct mlx4_zone_entry *zone = kmalloc_obj(*zone); in mlx4_zone_add_one() local
252 if (NULL == zone) in mlx4_zone_add_one()
255 zone->flags = flags; in mlx4_zone_add_one()
256 zone->bitmap = bitmap; in mlx4_zone_add_one()
257 zone->use_rr = (flags & MLX4_ZONE_USE_RR) ? MLX4_USE_RR : 0; in mlx4_zone_add_one()
258 zone->priority = priority; in mlx4_zone_add_one()
259 zone->offset = offset; in mlx4_zone_add_one()
263 zone->uid = zone_alloc->last_uid++; in mlx4_zone_add_one()
264 zone->allocator = zone_alloc; in mlx4_zone_add_one()
274 list_add_tail(&zone->prio_list, &it->prio_list); in mlx4_zone_add_one()
[all …]
/linux/include/trace/events/
H A Dcompaction.h194 TP_PROTO(struct zone *zone,
198 TP_ARGS(zone, order, ret),
208 __entry->nid = zone_to_nid(zone);
209 __entry->idx = zone_idx(zone);
214 TP_printk("node=%d zone=%-8s order=%d ret=%s",
223 TP_PROTO(struct zone *zone,
227 TP_ARGS(zone, order, ret)
232 TP_PROTO(struct zone *zone,
236 TP_ARGS(zone, order, ret)
241 TP_PROTO(struct zone *zone, int order),
[all …]
/linux/include/net/netfilter/
H A Dnf_conntrack_zones.h12 return &ct->zone; in nf_ct_zone()
19 nf_ct_zone_init(struct nf_conntrack_zone *zone, u16 id, u8 dir, u8 flags) in nf_ct_zone_init() argument
21 zone->id = id; in nf_ct_zone_init()
22 zone->flags = flags; in nf_ct_zone_init()
23 zone->dir = dir; in nf_ct_zone_init()
25 return zone; in nf_ct_zone_init()
36 if (tmpl->zone.flags & NF_CT_FLAG_MARK) in nf_ct_zone_tmpl()
37 return nf_ct_zone_init(tmp, skb->mark, tmpl->zone.dir, 0); in nf_ct_zone_tmpl()
43 const struct nf_conntrack_zone *zone) in nf_ct_zone_add() argument
46 ct->zone = *zone; in nf_ct_zone_add()
[all …]
/linux/Documentation/admin-guide/blockdev/
H A Dzoned_loop.rst19 device using one regular file per zone as backing storage. This driver does not
23 Using zloop, zoned block devices with a configurable capacity, zone size and
24 number of conventional zones can be created. The storage for each zone of the
25 device is implemented using a regular file with a maximum size equal to the zone
26 size. The size of a file backing a conventional zone is always equal to the zone
27 size. The size of a file backing a sequential zone indicates the amount of data
29 indicates the position of the write pointer of the zone.
31 When resetting a sequential zone, its backing file size is truncated to zero.
32 Conversely, for a zone finish operation, the backing file is truncated to the
33 zone capacity. With this, a zloop zoned block device can be configured with a
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-powercap25 This status affects every power zone using this "control_type.
27 What: /sys/class/powercap/<control type>/<power zone>
32 A power zone is a single or a collection of devices, which can
33 be independently monitored and controlled. A power zone sysfs
37 What: /sys/class/powercap/<control type>/<power zone>/<child power zone>
45 power zone for a whole CPU package, each CPU core in it can
46 be a child power zone.
48 What: /sys/class/powercap/.../<power zone>/name
53 Specifies the name of this power zone.
55 What: /sys/class/powercap/.../<power zone>/energy_uj
[all …]
/linux/virt/kvm/
H A Dcoalesced_mmio.c32 * (zone->addr, zone->size) in coalesced_mmio_in_range()
38 if (addr < dev->zone.addr) in coalesced_mmio_in_range()
40 if (addr + len > dev->zone.addr + dev->zone.size) in coalesced_mmio_in_range()
76 ring->coalesced_mmio[insert].pio = dev->zone.pio; in coalesced_mmio_write()
125 struct kvm_coalesced_mmio_zone *zone) in kvm_vm_ioctl_register_coalesced_mmio()
130 if (zone->pio != 1 && zone->pio != 0) in kvm_vm_ioctl_register_coalesced_mmio()
139 dev->zone in kvm_vm_ioctl_register_coalesced_mmio()
123 kvm_vm_ioctl_register_coalesced_mmio(struct kvm * kvm,struct kvm_coalesced_mmio_zone * zone) kvm_vm_ioctl_register_coalesced_mmio() argument
158 kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm * kvm,struct kvm_coalesced_mmio_zone * zone) kvm_vm_ioctl_unregister_coalesced_mmio() argument
[all...]
/linux/drivers/scsi/
H A Dsd_zbc.c26 /* Whether or not a SCSI zone descriptor describes a gap zone. */
33 * sd_zbc_parse_report - Parse a SCSI zone descriptor
35 * @buf: SCSI zone descriptor.
36 * @idx: Index of the zone relative to the first zone reported by the current
42 * Convert a SCSI zone descriptor into struct blk_zone format. Additionally,
49 struct blk_zone zone = { 0 }; in sd_zbc_parse_report() local
55 zone.type = buf[0] & 0x0f; in sd_zbc_parse_report()
56 zone in sd_zbc_parse_report()
[all...]

12345678910>>...22