/mm/ |
D | mempolicy.c | 124 .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 …]
|
D | migrate.c | 85 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() 678 enum migrate_mode mode) in migrate_page() argument 689 if (mode != MIGRATE_SYNC_NO_COPY) in migrate_page() 700 enum migrate_mode mode) in buffer_migrate_lock_buffers() argument 705 if (mode != MIGRATE_ASYNC) { in buffer_migrate_lock_buffers() 737 struct page *newpage, struct page *page, enum migrate_mode mode, in __buffer_migrate_page() argument 745 return migrate_page(mapping, newpage, page, mode); in __buffer_migrate_page() 753 if (!buffer_migrate_lock_buffers(head, mode)) in __buffer_migrate_page() 802 if (mode != MIGRATE_SYNC_NO_COPY) in __buffer_migrate_page() [all …]
|
D | vmpressure.c | 154 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()
|
D | balloon_compaction.c | 206 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()
|
D | failslab.c | 46 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()
|
D | compaction.c | 419 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() 1464 stride = cc->mode == MIGRATE_ASYNC ? COMPACT_CLUSTER_MAX : 1; in isolate_freepages() 1749 (cc->mode != MIGRATE_SYNC ? ISOLATE_ASYNC_MIGRATE : 0); in isolate_migratepages() 1922 if (cc->mode == MIGRATE_ASYNC || in __compact_finished() 2078 const bool sync = cc->mode != MIGRATE_ASYNC; in compact_zone() [all …]
|
D | shmem.c | 117 umode_t mode; member 1402 if (!mpol || mpol->mode == MPOL_DEFAULT) in shmem_show_mpol() 1983 static int synchronous_wake_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) in synchronous_wake_function() argument 1985 int ret = default_wake_function(wait, mode, sync, key); in synchronous_wake_function() 2239 umode_t mode, dev_t dev, unsigned long flags) in shmem_get_inode() argument 2251 inode_init_owner(inode, dir, mode); in shmem_get_inode() 2266 switch (mode & S_IFMT) { in shmem_get_inode() 2269 init_special_inode(inode, mode, dev); in shmem_get_inode() 2722 static long shmem_fallocate(struct file *file, int mode, loff_t offset, in shmem_fallocate() argument 2732 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) in shmem_fallocate() [all …]
|
D | vmscan.c | 1574 int __isolate_lru_page(struct page *page, isolate_mode_t mode) in __isolate_lru_page() argument 1583 if (PageUnevictable(page) && !(mode & ISOLATE_UNEVICTABLE)) in __isolate_lru_page() 1596 if (mode & ISOLATE_ASYNC_MIGRATE) { in __isolate_lru_page() 1625 if ((mode & ISOLATE_UNMAPPED) && page_mapped(page)) in __isolate_lru_page() 1695 isolate_mode_t mode = (sc->may_unmap ? 0 : ISOLATE_UNMAPPED); in isolate_lru_pages() local 1727 switch (__isolate_lru_page(page, mode)) { in isolate_lru_pages() 1765 total_scan, skipped, nr_taken, mode, lru); in isolate_lru_pages()
|
D | internal.h | 198 enum migrate_mode mode; /* Async or sync migration mode */ member
|
D | zsmalloc.c | 1915 static bool zs_page_isolate(struct page *page, isolate_mode_t mode) in zs_page_isolate() argument 1972 struct page *page, enum migrate_mode mode) in zs_page_migrate() argument 1992 if (mode == MIGRATE_SYNC_NO_COPY) in zs_page_migrate()
|
D | z3fold.c | 1337 static bool z3fold_page_isolate(struct page *page, isolate_mode_t mode) in z3fold_page_isolate() argument 1374 struct page *page, enum migrate_mode mode) in z3fold_page_migrate() argument
|
D | page_alloc.c | 3362 umode_t mode = S_IFREG | 0600; in fail_page_alloc_debugfs() local 3368 debugfs_create_bool("ignore-gfp-wait", mode, dir, in fail_page_alloc_debugfs() 3370 debugfs_create_bool("ignore-gfp-highmem", mode, dir, in fail_page_alloc_debugfs() 3372 debugfs_create_u32("min-order", mode, dir, &fail_page_alloc.min_order); in fail_page_alloc_debugfs() 8357 NULL, 0, cc->mode, MR_CONTIG_RANGE); in __alloc_contig_migrate_range() 8398 .mode = MIGRATE_SYNC, in alloc_contig_range()
|
D | filemap.c | 1028 static int wake_page_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg) in wake_page_function() argument 1052 return autoremove_wake_function(wait, mode, sync, key); in wake_page_function()
|
D | memcontrol.c | 1842 unsigned mode, int sync, void *arg) in memcg_oom_wake_function() argument 1854 return autoremove_wake_function(wait, mode, sync, arg); in memcg_oom_wake_function() 4572 static int memcg_event_wake(wait_queue_entry_t *wait, unsigned mode, in memcg_event_wake() argument
|
D | hugetlb.c | 1987 enum vma_resv_mode mode) in __vma_reservation_common() argument 1998 switch (mode) { in __vma_reservation_common()
|
D | slub.c | 1791 int mode, int *objects) in acquire_slab() argument 1808 if (mode) { in acquire_slab()
|