Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 16 of 16) sorted by relevance

/mm/
Dmempolicy.c124 .mode = MPOL_PREFERRED,
142 if (pol->mode) in get_task_policy()
216 if (pol->mode == MPOL_PREFERRED && nodes_empty(*nodes)) in mpol_set_nodemask()
232 ret = mpol_ops[pol->mode].create(pol, &nsc->mask2); in mpol_set_nodemask()
234 ret = mpol_ops[pol->mode].create(pol, NULL); in mpol_set_nodemask()
242 static struct mempolicy *mpol_new(unsigned short mode, unsigned short flags, in mpol_new() argument
248 mode, flags, nodes ? nodes_addr(*nodes)[0] : NUMA_NO_NODE); in mpol_new()
250 if (mode == MPOL_DEFAULT) { in mpol_new()
262 if (mode == MPOL_PREFERRED) { in mpol_new()
268 } else if (mode == MPOL_LOCAL) { in mpol_new()
[all …]
Dmigrate.c85 int isolate_movable_page(struct page *page, isolate_mode_t mode) in isolate_movable_page() argument
128 if (!mapping->a_ops->isolate_page(page, mode)) in isolate_movable_page()
683 enum migrate_mode mode) in migrate_page() argument
694 if (mode != MIGRATE_SYNC_NO_COPY) in migrate_page()
705 enum migrate_mode mode) in buffer_migrate_lock_buffers() argument
710 if (mode != MIGRATE_ASYNC) { in buffer_migrate_lock_buffers()
742 struct page *newpage, struct page *page, enum migrate_mode mode, in __buffer_migrate_page() argument
750 return migrate_page(mapping, newpage, page, mode); in __buffer_migrate_page()
758 if (!buffer_migrate_lock_buffers(head, mode)) in __buffer_migrate_page()
807 if (mode != MIGRATE_SYNC_NO_COPY) in __buffer_migrate_page()
[all …]
Dvmpressure.c154 enum vmpressure_modes mode; member
167 if (ancestor && ev->mode == VMPRESSURE_LOCAL) in vmpressure_event()
169 if (signalled && ev->mode == VMPRESSURE_NO_PASSTHROUGH) in vmpressure_event()
367 enum vmpressure_modes mode = VMPRESSURE_NO_PASSTHROUGH; in vmpressure_register_event() local
392 mode = ret; in vmpressure_register_event()
403 ev->mode = mode; in vmpressure_register_event()
Dballoon_compaction.c206 bool balloon_page_isolate(struct page *page, isolate_mode_t mode) in balloon_page_isolate() argument
235 enum migrate_mode mode) in balloon_page_migrate() argument
244 if (mode == MIGRATE_SYNC_NO_COPY) in balloon_page_migrate()
250 return balloon->migratepage(balloon, newpage, page, mode); in balloon_page_migrate()
Dfailslab.c46 umode_t mode = S_IFREG | 0600; in failslab_debugfs_init() local
52 debugfs_create_bool("ignore-gfp-wait", mode, dir, in failslab_debugfs_init()
54 debugfs_create_bool("cache-filter", mode, dir, in failslab_debugfs_init()
Dcompaction.c419 if (cc->mode != MIGRATE_ASYNC && in update_cached_migrate()
486 if (cc->mode == MIGRATE_ASYNC && !cc->contended) { in compact_lock_irqsave()
803 if (cc->mode == MIGRATE_ASYNC) in isolate_migratepages_block()
814 if (cc->direct_compaction && (cc->mode == MIGRATE_ASYNC)) { in isolate_migratepages_block()
1131 if ((cc->mode != MIGRATE_ASYNC) || !cc->direct_compaction) in suitable_migration_source()
1232 if (cc->direct_compaction && cc->mode == MIGRATE_ASYNC) in fast_isolate_around()
1457 stride = cc->mode == MIGRATE_ASYNC ? COMPACT_CLUSTER_MAX : 1; in isolate_freepages()
1741 (cc->mode != MIGRATE_SYNC ? ISOLATE_ASYNC_MIGRATE : 0); in isolate_migratepages()
1914 if (cc->mode == MIGRATE_ASYNC || in __compact_finished()
2070 const bool sync = cc->mode != MIGRATE_ASYNC; in compact_zone()
[all …]
Dshmem.c117 umode_t mode; member
1407 if (!mpol || mpol->mode == MPOL_DEFAULT) in shmem_show_mpol()
1988 static int synchronous_wake_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) in synchronous_wake_function() argument
1990 int ret = default_wake_function(wait, mode, sync, key); in synchronous_wake_function()
2233 umode_t mode, dev_t dev, unsigned long flags) in shmem_get_inode() argument
2245 inode_init_owner(inode, dir, mode); in shmem_get_inode()
2260 switch (mode & S_IFMT) { in shmem_get_inode()
2263 init_special_inode(inode, mode, dev); in shmem_get_inode()
2726 static long shmem_fallocate(struct file *file, int mode, loff_t offset, in shmem_fallocate() argument
2736 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in shmem_fallocate()
[all …]
Dvmscan.c1581 int __isolate_lru_page(struct page *page, isolate_mode_t mode) in __isolate_lru_page() argument
1590 if (PageUnevictable(page) && !(mode & ISOLATE_UNEVICTABLE)) in __isolate_lru_page()
1603 if (mode & ISOLATE_ASYNC_MIGRATE) { in __isolate_lru_page()
1632 if ((mode & ISOLATE_UNMAPPED) && page_mapped(page)) in __isolate_lru_page()
1702 isolate_mode_t mode = (sc->may_unmap ? 0 : ISOLATE_UNMAPPED); in isolate_lru_pages() local
1734 switch (__isolate_lru_page(page, mode)) { in isolate_lru_pages()
1772 total_scan, skipped, nr_taken, mode, lru); in isolate_lru_pages()
Dinternal.h198 enum migrate_mode mode; /* Async or sync migration mode */ member
Dzsmalloc.c1899 static bool zs_page_isolate(struct page *page, isolate_mode_t mode) in zs_page_isolate() argument
1956 struct page *page, enum migrate_mode mode) in zs_page_migrate() argument
1976 if (mode == MIGRATE_SYNC_NO_COPY) in zs_page_migrate()
Dz3fold.c1338 static bool z3fold_page_isolate(struct page *page, isolate_mode_t mode) in z3fold_page_isolate() argument
1375 struct page *page, enum migrate_mode mode) in z3fold_page_migrate() argument
Dpage_alloc.c3443 umode_t mode = S_IFREG | 0600; in fail_page_alloc_debugfs() local
3449 debugfs_create_bool("ignore-gfp-wait", mode, dir, in fail_page_alloc_debugfs()
3451 debugfs_create_bool("ignore-gfp-highmem", mode, dir, in fail_page_alloc_debugfs()
3453 debugfs_create_u32("min-order", mode, dir, &fail_page_alloc.min_order); in fail_page_alloc_debugfs()
8545 NULL, 0, cc->mode, MR_CONTIG_RANGE); in __alloc_contig_migrate_range()
8586 .mode = MIGRATE_SYNC, in alloc_contig_range()
Dfilemap.c1081 static int wake_page_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg) in wake_page_function() argument
1120 wake_up_state(wait->private, mode); in wake_page_function()
Dmemcontrol.c1860 unsigned mode, int sync, void *arg) in memcg_oom_wake_function() argument
1872 return autoremove_wake_function(wait, mode, sync, arg); in memcg_oom_wake_function()
4661 static int memcg_event_wake(wait_queue_entry_t *wait, unsigned mode, in memcg_event_wake() argument
Dhugetlb.c2031 enum vma_resv_mode mode) in __vma_reservation_common() argument
2042 switch (mode) { in __vma_reservation_common()
Dslub.c1828 int mode, int *objects) in acquire_slab() argument
1845 if (mode) { in acquire_slab()