/linux/Documentation/translations/zh_CN/core-api/ |
A 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/fs/crypto/ |
A D | bio.c | 57 bio = bio_alloc(GFP_NOFS, BIO_MAX_VECS); in fscrypt_zeroout_range_inline_crypt() 64 fscrypt_set_bio_crypt_ctx(bio, inode, lblk, GFP_NOFS); in fscrypt_zeroout_range_inline_crypt() 143 pages[i] = fscrypt_alloc_bounce_page(i == 0 ? GFP_NOFS : in fscrypt_zeroout_range() 153 bio = bio_alloc(GFP_NOFS, nr_pages); in fscrypt_zeroout_range() 165 blocksize, offset, GFP_NOFS); in fscrypt_zeroout_range()
|
A D | fname.c | 114 req = skcipher_request_alloc(tfm, GFP_NOFS); in fscrypt_fname_encrypt() 157 req = skcipher_request_alloc(tfm, GFP_NOFS); in fname_decrypt() 293 crypto_str->name = kmalloc(max_presented_len + 1, GFP_NOFS); in fscrypt_fname_alloc_buffer() 436 GFP_NOFS); in fscrypt_setup_filename()
|
/linux/fs/dlm/ |
A D | memory.c | 47 p = kzalloc(ls->ls_lvblen, GFP_NOFS); in dlm_allocate_lvb() 60 r = kmem_cache_zalloc(rsb_cache, GFP_NOFS); in dlm_allocate_rsb() 75 lkb = kmem_cache_zalloc(lkb_cache, GFP_NOFS); in dlm_allocate_lkb()
|
A D | config.c | 409 cl = kzalloc(sizeof(struct dlm_cluster), GFP_NOFS); in make_cluster() 410 sps = kzalloc(sizeof(struct dlm_spaces), GFP_NOFS); in make_cluster() 411 cms = kzalloc(sizeof(struct dlm_comms), GFP_NOFS); in make_cluster() 479 sp = kzalloc(sizeof(struct dlm_space), GFP_NOFS); in make_space() 480 nds = kzalloc(sizeof(struct dlm_nodes), GFP_NOFS); in make_space() 523 cm = kzalloc(sizeof(struct dlm_comm), GFP_NOFS); in make_comm() 562 nd = kzalloc(sizeof(struct dlm_node), GFP_NOFS); in make_node() 671 addr = kzalloc(sizeof(*addr), GFP_NOFS); in comm_addr_store() 895 nodes = kcalloc(count, sizeof(struct dlm_config_node), GFP_NOFS); in dlm_config_nodes()
|
/linux/fs/quota/ |
A D | quota_tree.c | 77 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in get_free_dqblk() 126 char *tmpbuf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in remove_free_dqentry() 173 char *tmpbuf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in insert_free_dqentry() 221 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in find_free_dqentry() 292 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in do_insert_tree() 408 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in free_dqentry() 469 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in remove_tree() 535 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in find_block_dqentry() 573 char *buf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in find_tree_dqentry() 644 ddquot = kmalloc(info->dqi_entry_size, GFP_NOFS); in qtree_read_dquot() [all …]
|
A 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/fs/btrfs/ |
A D | extent-io-tree.h | 146 GFP_NOFS, NULL); in unlock_extent_cached() 179 return set_extent_bit(tree, start, end, bits, 0, NULL, NULL, GFP_NOFS, in set_extent_bits() 187 cached_state, GFP_NOFS, NULL); in clear_extent_uptodate() 215 0, NULL, cached_state, GFP_NOFS, NULL); in set_extent_delalloc() 223 0, NULL, cached_state, GFP_NOFS, NULL); in set_extent_defrag() 230 GFP_NOFS, NULL); in set_extent_new()
|
A 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 …]
|
A D | backref.c | 54 e = kmalloc(sizeof(*e), GFP_NOFS); in check_extent_in_eb() 679 parents = ulist_alloc(GFP_NOFS); in resolve_indirect_refs() 741 GFP_NOFS); in resolve_indirect_refs() 1033 sc, GFP_NOFS); in add_inline_refs() 1100 sc, GFP_NOFS); in add_keyed_refs() 1107 1, NULL, GFP_NOFS); in add_keyed_refs() 1131 sc, GFP_NOFS); in add_keyed_refs() 1358 (void **)&eie, GFP_NOFS); 1421 *leafs = ulist_alloc(GFP_NOFS); 1458 tmp = ulist_alloc(GFP_NOFS); [all …]
|
A 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()
|
/linux/Documentation/core-api/ |
A 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/fs/ntfs/ |
A 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()
|
A 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/fs/afs/ |
A 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() 1629 afs_make_call(ac, call, GFP_NOFS); in afs_fs_give_up_all_callbacks() [all …]
|
A D | yfsclient.c | 495 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_fetch_data() 577 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_create_file() 625 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_make_dir() 709 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_remove_file2() 778 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_remove_file() 819 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_remove_dir() 892 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_link() 973 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_symlink() 1052 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_rename() 1107 afs_make_op_call(op, call, GFP_NOFS); in yfs_fs_store_data() [all …]
|
/linux/net/sunrpc/auth_gss/ |
A D | gss_krb5_seqnum.c | 52 plain = kmalloc(8, GFP_NOFS); in krb5_make_seq_num() 83 plain = kmalloc(8, GFP_NOFS); in krb5_get_seq_num()
|
/linux/fs/ceph/ |
A 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/net/ceph/ |
A D | msgpool.c | 73 GFP_NOFS, false); in ceph_msgpool_get() 76 msg = mempool_alloc(pool->pool, GFP_NOFS); in ceph_msgpool_get()
|
A 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/fs/ocfs2/ |
A 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/security/tomoyo/ |
A 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()
|
/linux/fs/ext4/ |
A 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/fs/ubifs/ |
A 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/security/integrity/ima/ |
A D | ima_api.c | 51 template_desc->num_fields), GFP_NOFS); in ima_alloc_init_template() 56 sizeof(*digests), GFP_NOFS); in ima_alloc_init_template() 260 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement()
|