/Linux-v6.6/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-v6.6/fs/crypto/ |
D | bio.c | 60 GFP_NOFS); in fscrypt_zeroout_range_inline_crypt() 67 fscrypt_set_bio_crypt_ctx(bio, inode, lblk, GFP_NOFS); in fscrypt_zeroout_range_inline_crypt() 144 pages[i] = fscrypt_alloc_bounce_page(i == 0 ? GFP_NOFS : in fscrypt_zeroout_range() 154 bio = bio_alloc(inode->i_sb->s_bdev, nr_pages, REQ_OP_WRITE, GFP_NOFS); in fscrypt_zeroout_range() 164 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-v6.6/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-v6.6/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-v6.6/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-v6.6/fs/dlm/ |
D | memory.c | 87 p = kzalloc(ls->ls_lvblen, GFP_NOFS); in dlm_allocate_lvb() 100 r = kmem_cache_zalloc(rsb_cache, GFP_NOFS); in dlm_allocate_rsb() 115 lkb = kmem_cache_zalloc(lkb_cache, GFP_NOFS); in dlm_allocate_lkb()
|
D | config.c | 401 cl = kzalloc(sizeof(struct dlm_cluster), GFP_NOFS); in make_cluster() 402 sps = kzalloc(sizeof(struct dlm_spaces), GFP_NOFS); in make_cluster() 403 cms = kzalloc(sizeof(struct dlm_comms), GFP_NOFS); in make_cluster() 469 sp = kzalloc(sizeof(struct dlm_space), GFP_NOFS); in make_space() 470 nds = kzalloc(sizeof(struct dlm_nodes), GFP_NOFS); in make_space() 513 cm = kzalloc(sizeof(struct dlm_comm), GFP_NOFS); in make_comm() 552 nd = kzalloc(sizeof(struct dlm_node), GFP_NOFS); in make_node() 661 addr = kzalloc(sizeof(*addr), GFP_NOFS); in comm_addr_store() 885 nodes = kcalloc(count, sizeof(struct dlm_config_node), GFP_NOFS); in dlm_config_nodes()
|
D | plock.c | 105 op = kzalloc(sizeof(*op), GFP_NOFS); in do_lock_cancel() 134 op = kzalloc(sizeof(*op), GFP_NOFS); in dlm_posix_lock() 150 op_data = kzalloc(sizeof(*op_data), GFP_NOFS); in dlm_posix_lock() 304 op = kzalloc(sizeof(*op), GFP_NOFS); in dlm_posix_unlock() 440 op = kzalloc(sizeof(*op), GFP_NOFS); in dlm_posix_get()
|
/Linux-v6.6/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-v6.6/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()
|
D | pagelist.c | 59 page = __page_cache_alloc(GFP_NOFS); in ceph_pagelist_addpage() 110 struct page *page = __page_cache_alloc(GFP_NOFS); in ceph_pagelist_reserve()
|
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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() 391 ret = __posix_acl_create(&acl, GFP_NOFS, &mode); in ocfs2_init_acl()
|
/Linux-v6.6/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()
|
/Linux-v6.6/fs/btrfs/ |
D | ref-verify.c | 270 re = kzalloc(sizeof(struct root_entry), GFP_NOFS); in add_block_entry() 271 be = kzalloc(sizeof(struct block_entry), GFP_NOFS); in add_block_entry() 319 ref = kmalloc(sizeof(struct ref_entry), GFP_NOFS); in add_tree_block() 364 ref = kzalloc(sizeof(struct ref_entry), GFP_NOFS); in add_shared_data_ref() 399 ref = kzalloc(sizeof(struct ref_entry), GFP_NOFS); in add_extent_data_ref() 693 ref = kzalloc(sizeof(struct ref_entry), GFP_NOFS); in btrfs_ref_tree_mod() 694 ra = kmalloc(sizeof(struct ref_action), GFP_NOFS); in btrfs_ref_tree_mod() 768 re = kmalloc(sizeof(struct root_entry), GFP_NOFS); in btrfs_ref_tree_mod()
|
D | backref.c | 81 e = kmalloc(sizeof(*e), GFP_NOFS); in check_extent_in_eb() 492 ret = ulist_add(parents, eb->start, 0, GFP_NOFS); in add_all_parents() 565 eie, (void **)&old, GFP_NOFS); in add_all_parents() 747 parents = ulist_alloc(GFP_NOFS); in resolve_indirect_refs() 806 GFP_NOFS); in resolve_indirect_refs() 1086 ctx->bytenr, 1, NULL, GFP_NOFS); in add_inline_refs() 1096 ctx->bytenr, count, sc, GFP_NOFS); in add_inline_refs() 1102 ctx->bytenr, 1, NULL, GFP_NOFS); in add_inline_refs() 1129 count, sc, GFP_NOFS); in add_inline_refs() 1185 ctx->bytenr, 1, NULL, GFP_NOFS); in add_keyed_refs() [all …]
|
/Linux-v6.6/fs/9p/ |
D | acl.c | 32 value = kzalloc(size, GFP_NOFS); in v9fs_fid_get_acl() 171 value = kzalloc(size, GFP_NOFS); in v9fs_iop_set_acl() 335 retval = __posix_acl_create(&acl, GFP_NOFS, &mode); in v9fs_acl_mode()
|