/linux-6.1.9/Documentation/translations/zh_CN/core-api/ |
D | gfp_mask-from-fs-io.rst | 30 (注意后者意味着也要清除第一个)。GFP_NOFS和GFP_NOIO可以作为快捷方式使用。但事 32 这导致了问题,因为过度使用GFP_NOFS/GFP_NOIO会导致内存过度回收或其他内存回收的问 57 那么__vmalloc(GFP_NOFS)呢? 60 vmalloc不支持GFP_NOFS语义,因为在分配器的深处有硬编码的GFP_KERNEL分配,要修 61 复这些分配是相当不容易的。这意味着用GFP_NOFS/GFP_NOIO调用 ``vmalloc`` 几乎
|
/linux-6.1.9/fs/crypto/ |
D | bio.c | 62 GFP_NOFS); in fscrypt_zeroout_range_inline_crypt() 69 fscrypt_set_bio_crypt_ctx(bio, inode, lblk, GFP_NOFS); in fscrypt_zeroout_range_inline_crypt() 146 pages[i] = fscrypt_alloc_bounce_page(i == 0 ? GFP_NOFS : in fscrypt_zeroout_range() 156 bio = bio_alloc(inode->i_sb->s_bdev, nr_pages, REQ_OP_WRITE, GFP_NOFS); in fscrypt_zeroout_range() 166 blocksize, offset, GFP_NOFS); in fscrypt_zeroout_range()
|
D | fname.c | 122 req = skcipher_request_alloc(tfm, GFP_NOFS); in fscrypt_fname_encrypt() 166 req = skcipher_request_alloc(tfm, GFP_NOFS); in fname_decrypt() 325 crypto_str->name = kmalloc(max_presented_len + 1, GFP_NOFS); in fscrypt_fname_alloc_buffer() 467 GFP_NOFS); in fscrypt_setup_filename()
|
/linux-6.1.9/fs/btrfs/ |
D | extent-io-tree.h | 132 GFP_NOFS, NULL); in clear_extent_bit() 139 GFP_NOFS, NULL); in unlock_extent() 169 return set_extent_bit(tree, start, end, bits, NULL, GFP_NOFS); in set_extent_bits() 176 cached_state, GFP_NOFS, NULL); in clear_extent_uptodate() 203 cached_state, GFP_NOFS); in set_extent_delalloc() 211 cached_state, GFP_NOFS); in set_extent_defrag() 217 return set_extent_bit(tree, start, end, EXTENT_NEW, NULL, GFP_NOFS); in set_extent_new()
|
D | tree-mod-log.c | 261 tm_list = kcalloc(nr_items, sizeof(struct tree_mod_elem *), GFP_NOFS); in btrfs_tree_mod_log_insert_move() 265 tm = kzalloc(sizeof(*tm), GFP_NOFS); in btrfs_tree_mod_log_insert_move() 279 BTRFS_MOD_LOG_KEY_REMOVE_WHILE_MOVING, GFP_NOFS); in btrfs_tree_mod_log_insert_move() 360 GFP_NOFS); in btrfs_tree_mod_log_insert_root() 367 BTRFS_MOD_LOG_KEY_REMOVE_WHILE_FREEING, GFP_NOFS); in btrfs_tree_mod_log_insert_root() 375 tm = kzalloc(sizeof(*tm), GFP_NOFS); in btrfs_tree_mod_log_insert_root() 497 GFP_NOFS); in btrfs_tree_mod_log_eb_copy() 505 BTRFS_MOD_LOG_KEY_REMOVE, GFP_NOFS); in btrfs_tree_mod_log_eb_copy() 512 BTRFS_MOD_LOG_KEY_ADD, GFP_NOFS); in btrfs_tree_mod_log_eb_copy() 561 tm_list = kcalloc(nritems, sizeof(struct tree_mod_elem *), GFP_NOFS); in btrfs_tree_mod_log_free_eb() [all …]
|
D | ref-verify.c | 267 re = kzalloc(sizeof(struct root_entry), GFP_NOFS); in add_block_entry() 268 be = kzalloc(sizeof(struct block_entry), GFP_NOFS); in add_block_entry() 316 ref = kmalloc(sizeof(struct ref_entry), GFP_NOFS); in add_tree_block() 361 ref = kzalloc(sizeof(struct ref_entry), GFP_NOFS); in add_shared_data_ref() 396 ref = kzalloc(sizeof(struct ref_entry), GFP_NOFS); in add_extent_data_ref() 690 ref = kzalloc(sizeof(struct ref_entry), GFP_NOFS); in btrfs_ref_tree_mod() 691 ra = kmalloc(sizeof(struct ref_action), GFP_NOFS); in btrfs_ref_tree_mod() 765 re = kmalloc(sizeof(struct root_entry), GFP_NOFS); in btrfs_ref_tree_mod()
|
D | backref.c | 54 e = kmalloc(sizeof(*e), GFP_NOFS); in check_extent_in_eb() 440 ret = ulist_add(parents, eb->start, 0, GFP_NOFS); in add_all_parents() 514 eie, (void **)&old, GFP_NOFS); in add_all_parents() 698 parents = ulist_alloc(GFP_NOFS); in resolve_indirect_refs() 760 GFP_NOFS); in resolve_indirect_refs() 1029 bytenr, 1, NULL, GFP_NOFS); in add_inline_refs() 1039 bytenr, count, sc, GFP_NOFS); in add_inline_refs() 1045 bytenr, 1, NULL, GFP_NOFS); in add_inline_refs() 1069 sc, GFP_NOFS); in add_inline_refs() 1125 bytenr, 1, NULL, GFP_NOFS); in add_keyed_refs() [all …]
|
/linux-6.1.9/fs/dlm/ |
D | memory.c | 76 p = kzalloc(ls->ls_lvblen, GFP_NOFS); in dlm_allocate_lvb() 89 r = kmem_cache_zalloc(rsb_cache, GFP_NOFS); in dlm_allocate_rsb() 104 lkb = kmem_cache_zalloc(lkb_cache, GFP_NOFS); in dlm_allocate_lkb() 123 return kmem_cache_alloc(mhandle_cache, GFP_NOFS); in dlm_allocate_mhandle()
|
D | config.c | 413 cl = kzalloc(sizeof(struct dlm_cluster), GFP_NOFS); in make_cluster() 414 sps = kzalloc(sizeof(struct dlm_spaces), GFP_NOFS); in make_cluster() 415 cms = kzalloc(sizeof(struct dlm_comms), GFP_NOFS); in make_cluster() 484 sp = kzalloc(sizeof(struct dlm_space), GFP_NOFS); in make_space() 485 nds = kzalloc(sizeof(struct dlm_nodes), GFP_NOFS); in make_space() 528 cm = kzalloc(sizeof(struct dlm_comm), GFP_NOFS); in make_comm() 567 nd = kzalloc(sizeof(struct dlm_node), GFP_NOFS); in make_node() 676 addr = kzalloc(sizeof(*addr), GFP_NOFS); in comm_addr_store() 900 nodes = kcalloc(count, sizeof(struct dlm_config_node), GFP_NOFS); in dlm_config_nodes()
|
D | plock.c | 88 op = kzalloc(sizeof(*op), GFP_NOFS); in do_unlock_close() 116 op = kzalloc(sizeof(*op), GFP_NOFS); in dlm_posix_lock() 132 op_data = kzalloc(sizeof(*op_data), GFP_NOFS); in dlm_posix_lock() 260 op = kzalloc(sizeof(*op), GFP_NOFS); in dlm_posix_unlock() 327 op = kzalloc(sizeof(*op), GFP_NOFS); in dlm_posix_get()
|
/linux-6.1.9/fs/ntfs/ |
D | malloc.h | 52 return __ntfs_malloc(size, GFP_NOFS | __GFP_HIGHMEM); in ntfs_malloc_nofs() 69 return __ntfs_malloc(size, GFP_NOFS | __GFP_HIGHMEM | __GFP_NOFAIL); in ntfs_malloc_nofs_nofail()
|
D | unistr.c | 255 ucs = kmem_cache_alloc(ntfs_name_cache, GFP_NOFS); in ntfs_nlstoucs() 339 ns = kmalloc(ns_len + 1, GFP_NOFS); in ntfs_ucstonls() 355 ~63, GFP_NOFS); in ntfs_ucstonls()
|
/linux-6.1.9/Documentation/core-api/ |
D | gfp_mask-from-fs-io.rst | 21 the gfp mask when calling an allocator. GFP_NOFS respectively GFP_NOIO can be 25 of GFP_NOFS/GFP_NOIO can lead to memory over-reclaim or other memory 55 What about __vmalloc(GFP_NOFS) 58 vmalloc doesn't support GFP_NOFS semantic because there are hardcoded 60 to fix up. That means that calling ``vmalloc`` with GFP_NOFS/GFP_NOIO is
|
/linux-6.1.9/fs/quota/ |
D | quota_tree.c | 111 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in get_free_dqblk() 163 char *tmpbuf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in remove_free_dqentry() 210 char *tmpbuf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in insert_free_dqentry() 258 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in find_free_dqentry() 332 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in do_insert_tree() 413 char *ddquot = kmalloc(info->dqi_entry_size, GFP_NOFS); in qtree_write_dquot() 452 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in free_dqentry() 516 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in remove_tree() 580 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in find_block_dqentry() 618 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in find_tree_dqentry() [all …]
|
D | netlink.c | 50 skb = genlmsg_new(msg_size, GFP_NOFS); in quota_send_warning() 87 genlmsg_multicast("a_genl_family, skb, 0, 0, GFP_NOFS); in quota_send_warning()
|
/linux-6.1.9/fs/afs/ |
D | fsclient.c | 294 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_fetch_status() 446 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_fetch_data64() 480 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_fetch_data() 563 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_create_file() 616 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_make_dir() 689 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_remove_file() 736 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_remove_dir() 816 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_link() 911 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_symlink() 1007 afs_make_op_call(op, call, GFP_NOFS); in afs_fs_rename() [all …]
|
D | yfsclient.c | 494 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_fetch_data() 576 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_create_file() 624 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_make_dir() 708 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_remove_file2() 777 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_remove_file() 818 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_remove_dir() 891 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_link() 972 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_symlink() 1051 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_rename() 1106 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_store_data() [all …]
|
/linux-6.1.9/net/ceph/ |
D | msgpool.c | 73 GFP_NOFS, false); in ceph_msgpool_get() 76 msg = mempool_alloc(pool->pool, GFP_NOFS); in ceph_msgpool_get()
|
D | auth_none.c | 100 au = kmalloc(sizeof(*au), GFP_NOFS); in ceph_auth_none_create_authorizer() 136 xi = kzalloc(sizeof(*xi), GFP_NOFS); in ceph_auth_none_init()
|
/linux-6.1.9/fs/ceph/ |
D | mdsmap.c | 127 m = kzalloc(sizeof(*m), GFP_NOFS); in ceph_mdsmap_decode() 169 m->m_info = kcalloc(m->possible_max_rank, sizeof(*m->m_info), GFP_NOFS); in ceph_mdsmap_decode() 261 sizeof(u32), GFP_NOFS); in ceph_mdsmap_decode() 276 m->m_data_pg_pools = kcalloc(n, sizeof(u64), GFP_NOFS); in ceph_mdsmap_decode() 323 GFP_NOFS | __GFP_ZERO); in ceph_mdsmap_decode()
|
/linux-6.1.9/fs/ext4/ |
D | acl.c | 37 acl = posix_acl_alloc(count, GFP_NOFS); in ext4_acl_from_disk() 99 sizeof(ext4_acl_entry), GFP_NOFS); in ext4_acl_to_disk() 167 value = kmalloc(retval, GFP_NOFS); in ext4_get_acl()
|
/linux-6.1.9/security/tomoyo/ |
D | audit.c | 26 char *buffer = kzalloc(tomoyo_buffer_len, GFP_NOFS); in tomoyo_print_bprm() 156 char *buffer = kmalloc(tomoyo_buffer_len, GFP_NOFS); in tomoyo_print_header() 275 buf = kzalloc(len, GFP_NOFS); in tomoyo_init_log() 379 entry = kzalloc(sizeof(*entry), GFP_NOFS); in tomoyo_write_log2()
|
D | memory.c | 76 void *ptr = kzalloc(size, GFP_NOFS | __GFP_NOWARN); in tomoyo_commit_ok() 173 ptr = kzalloc(sizeof(*ptr) + len, GFP_NOFS | __GFP_NOWARN); in tomoyo_get_name()
|
/linux-6.1.9/fs/ocfs2/ |
D | acl.c | 45 acl = posix_acl_alloc(count, GFP_NOFS); in ocfs2_acl_from_xattr() 85 ocfs2_acl = kmalloc(*size, GFP_NOFS); in ocfs2_acl_to_xattr() 134 value = kmalloc(retval, GFP_NOFS); in ocfs2_get_acl_nolock() 390 ret = __posix_acl_create(&acl, GFP_NOFS, &mode); in ocfs2_init_acl()
|
/linux-6.1.9/fs/ubifs/ |
D | xattr.c | 128 ui->data = kmemdup(value, size, GFP_NOFS); in create_xattr() 206 buf = kmemdup(value, size, GFP_NOFS); in change_xattr() 282 xent = kmalloc(UBIFS_MAX_XENT_NODE_SZ, GFP_NOFS); in ubifs_xattr_set() 340 xent = kmalloc(UBIFS_MAX_XENT_NODE_SZ, GFP_NOFS); in ubifs_xattr_get() 609 xent = kmalloc(UBIFS_MAX_XENT_NODE_SZ, GFP_NOFS); in ubifs_xattr_remove() 653 strlen(xattr->name) + 1, GFP_NOFS); in init_xattrs()
|