| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | gfp_mask-from-fs-io.rst | 30 (注意后者意味着也要清除第一个)。GFP_NOFS和GFP_NOIO可以作为快捷方式使用。但事 32 这导致了问题,因为过度使用GFP_NOFS/GFP_NOIO会导致内存过度回收或其他内存回收的问 61 复这些分配是相当不容易的。这意味着用GFP_NOFS/GFP_NOIO调用 ``vmalloc`` 几乎
|
| H A D | memory-allocation.rst | 67 你可能会注意到,在现有的代码中,有相当多的分配指定了 ``GFP_NOIO`` 或 ``GFP_NOFS`` 。
|
| /linux/net/ceph/ |
| H A D | cls_lock_client.c | 52 lock_op_page = alloc_page(GFP_NOIO); in ceph_cls_lock() 111 unlock_op_page = alloc_page(GFP_NOIO); in ceph_cls_unlock() 164 break_op_page = alloc_page(GFP_NOIO); in ceph_cls_break_lock() 213 cookie_op_page = alloc_page(GFP_NOIO); in ceph_cls_set_cookie() 263 s = ceph_extract_encoded_string(p, end, NULL, GFP_NOIO); in decode_locker() 303 *lockers = kzalloc_objs(**lockers, *num_lockers, GFP_NOIO); in decode_lockers() 314 s = ceph_extract_encoded_string(p, end, NULL, GFP_NOIO); in decode_lockers() 352 get_info_op_page = alloc_page(GFP_NOIO); in ceph_cls_lock_info() 356 reply_page = alloc_page(GFP_NOIO); in ceph_cls_lock_info() 411 pages = ceph_alloc_page_vector(1, GFP_NOIO); in ceph_cls_assert_locked()
|
| H A D | crypto.c | 65 GFP_NOIO); in set_krb5_tfms() 104 dst->key = kmemdup(src->key, src->len, GFP_NOIO); in ceph_crypto_key_clone() 126 key->key = kmemdup(*p, key->len, GFP_NOIO); in ceph_crypto_key_decode()
|
| H A D | osd_client.c | 1266 osd = kzalloc_obj(*osd, GFP_NOIO | __GFP_NOFAIL); in create_osd() 1720 spg = kmalloc_obj(*spg, GFP_NOIO); in alloc_spg_mapping() 1847 GFP_NOIO); in decode_hoid() 1855 GFP_NOIO); in decode_hoid() 1867 GFP_NOIO); in decode_hoid() 1915 backoff = kzalloc_obj(*backoff, GFP_NOIO); in alloc_backoff() 2808 lreq = kzalloc_obj(*lreq, GFP_NOIO); in linger_alloc() 2950 lwork = kzalloc_obj(*lwork, GFP_NOIO); in lwork_alloc() 3142 req = ceph_osdc_alloc_request(osdc, NULL, 1, true, GFP_NOIO); in send_linger() 3172 ret = ceph_osdc_alloc_messages(req, GFP_NOIO); in send_linger() [all …]
|
| H A D | mon_client.c | 120 monmap = kmalloc_flex(*monmap, mon_inst, num_mon, GFP_NOIO); in ceph_monmap_decode() 860 req = alloc_generic_request(monc, GFP_NOIO); in __ceph_monc_get_version() 866 GFP_NOIO, true); in __ceph_monc_get_version() 870 req->reply = ceph_msg_new(CEPH_MSG_MON_GET_VERSION_REPLY, 32, GFP_NOIO, in __ceph_monc_get_version() 983 req = alloc_generic_request(monc, GFP_NOIO); in do_mon_command_vargs() 987 req->request = ceph_msg_new(CEPH_MSG_MON_COMMAND, 256, GFP_NOIO, true); in do_mon_command_vargs() 991 req->reply = ceph_msg_new(CEPH_MSG_MON_COMMAND_ACK, 512, GFP_NOIO, in do_mon_command_vargs()
|
| /linux/fs/squashfs/ |
| H A D | block.c | 124 GFP_NOIO, &fs_bio_set); in squashfs_bio_read_cached() 154 GFP_NOIO); in squashfs_bio_read_cached() 166 GFP_NOIO); in squashfs_bio_read_cached() 183 GFP_NOIO); in squashfs_bio_read_cached() 231 bio = bio_kmalloc(page_count, GFP_NOIO); in squashfs_bio_read() 245 page = alloc_page(GFP_NOIO); in squashfs_bio_read()
|
| /linux/drivers/usb/core/ |
| H A D | message.c | 62 retval = usb_submit_urb(urb, GFP_NOIO); in usb_start_wait_urb() 110 urb = usb_alloc_urb(0, GFP_NOIO); in usb_internal_control_msg() 157 dr = kmalloc_obj(struct usb_ctrlrequest, GFP_NOIO); in usb_control_msg() 723 retval = usb_submit_urb(io->urbs[i], GFP_NOIO); in usb_sg_wait() 1038 tbuf = kmalloc(256, GFP_NOIO); in usb_string() 1086 buf = kmalloc(MAX_USB_STRING_SIZE, GFP_NOIO); in usb_cache_string() 1096 smallbuf = krealloc(buf, len + 1, GFP_NOIO); in usb_cache_string() 1121 desc = kmalloc_obj(*desc, GFP_NOIO); in usb_get_device_descriptor() 1157 GFP_NOIO); in usb_set_isoch_delay() 1282 USB_CTRL_SET_TIMEOUT, GFP_NOIO); in usb_clear_halt() [all …]
|
| /linux/drivers/usb/storage/ |
| H A D | datafab.c | 169 buffer = kmalloc(alloclen, GFP_NOIO); in datafab_read_data() 253 buffer = kmalloc(alloclen, GFP_NOIO); in datafab_write_data() 331 buf = kmalloc(512, GFP_NOIO); in datafab_determine_lun() 402 reply = kmalloc(512, GFP_NOIO); in datafab_id_device() 558 us->extra = kzalloc_obj(struct datafab_info, GFP_NOIO); in datafab_transport()
|
| H A D | sddr55.c | 211 buffer = kmalloc(len, GFP_NOIO); in sddr55_read_data() 338 buffer = kmalloc(len, GFP_NOIO); in sddr55_write_data() 661 buffer = kmalloc_array(numblocks, 2, GFP_NOIO ); in sddr55_read_map() 694 info->lba_to_pba = kmalloc_objs(int, numblocks, GFP_NOIO); in sddr55_read_map() 695 info->pba_to_lba = kmalloc_objs(int, numblocks, GFP_NOIO); in sddr55_read_map() 802 us->extra = kzalloc_obj(struct sddr55_card_info, GFP_NOIO); in sddr55_transport()
|
| H A D | karma.c | 177 struct karma_data *data = kzalloc_obj(struct karma_data, GFP_NOIO); in rio_karma_init() 182 data->recv = kmalloc(RIO_RECV_LEN, GFP_NOIO); in rio_karma_init()
|
| H A D | alauda.c | 442 MEDIA_INFO(us).pba_to_lba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media() 443 MEDIA_INFO(us).lba_to_pba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media() 578 u16 *lba_to_pba = kcalloc(zonesize, sizeof(u16), GFP_NOIO); in alauda_read_map() 579 u16 *pba_to_lba = kcalloc(zonesize, sizeof(u16), GFP_NOIO); in alauda_read_map() 939 buffer = kmalloc(len, GFP_NOIO); in alauda_read_data() 1031 buffer = kmalloc(len, GFP_NOIO); in alauda_write_data() 1039 blockbuffer = kmalloc_array(pagesize + 64, blocksize, GFP_NOIO); in alauda_write_data() 1116 us->extra = kzalloc_obj(struct alauda_info, GFP_NOIO); in init_alauda()
|
| H A D | jumpshot.c | 181 buffer = kmalloc(alloclen, GFP_NOIO); in jumpshot_read_data() 258 buffer = kmalloc(alloclen, GFP_NOIO); in jumpshot_write_data() 333 reply = kmalloc(512, GFP_NOIO); in jumpshot_id_device() 485 us->extra = kzalloc_obj(struct jumpshot_info, GFP_NOIO); in jumpshot_transport()
|
| H A D | sddr09.c | 680 buf = kmalloc(bulklen, GFP_NOIO); 756 buffer = kmalloc(len, GFP_NOIO); in sddr09_read_data() 990 blockbuffer = kmalloc(blocklen, GFP_NOIO); in sddr09_write_data() 1001 buffer = kmalloc(len, GFP_NOIO); in sddr09_write_data() 1224 buffer = kmalloc(alloc_len, GFP_NOIO); in sddr09_read_map() 1235 info->lba_to_pba = kmalloc_objs(int, numblocks, GFP_NOIO); in sddr09_read_map() 1236 info->pba_to_lba = kmalloc_objs(int, numblocks, GFP_NOIO); in sddr09_read_map() 1431 us->extra = kzalloc_obj(struct sddr09_card_info, GFP_NOIO); in sddr09_common_init()
|
| H A D | shuttle_usbat.c | 1067 reply = kmalloc(512, GFP_NOIO); in usbat_flash_get_sector_count() 1152 buffer = kmalloc(alloclen, GFP_NOIO); in usbat_flash_read_data() 1243 buffer = kmalloc(alloclen, GFP_NOIO); in usbat_flash_write_data() 1346 buffer = kmalloc(len, GFP_NOIO); in usbat_hp8200e_handle_read10() 1457 us->extra = kzalloc_obj(struct usbat_info, GFP_NOIO); in init_usbat()
|
| /linux/drivers/md/bcache/ |
| H A D | request.c | 227 n = bio_next_split(bio, KEY_SIZE(k), GFP_NOIO, split); in CLOSURE_CALLBACK() 566 GFP_NOIO, &s->d->bio_split); in cache_lookup_fn() 702 bio_init_clone(orig_bio->bi_bdev, bio, orig_bio, GFP_NOIO); in do_bio_hook() 735 s = mempool_alloc(&d->c->search, GFP_NOIO); in search_alloc() 903 miss = bio_next_split(bio, sectors, GFP_NOIO, &s->d->bio_split); in cached_dev_cache_miss() 923 miss = bio_next_split(bio, s->insert_bio_sectors, GFP_NOIO, in cached_dev_cache_miss() 942 if (bch_bio_alloc_pages(cache_bio, __GFP_NOWARN|GFP_NOIO)) in cached_dev_cache_miss() 1042 GFP_NOIO, &dc->disk.bio_split); in cached_dev_write() 1053 s->iop.bio = bio_alloc_clone(bio->bi_bdev, bio, GFP_NOIO, in cached_dev_write() 1115 clone_bio = bio_alloc_clone(dc->bdev, orig_bio, GFP_NOIO, in detached_dev_do_request()
|
| H A D | debug.c | 115 check = bio_kmalloc(nr_segs, GFP_NOIO); in bch_data_verify() 123 if (bch_bio_alloc_pages(check, GFP_NOIO)) in bch_data_verify()
|
| /linux/net/sunrpc/xprtrdma/ |
| H A D | svc_rdma_backchannel.c | 113 page = alloc_page(GFP_NOIO | __GFP_NOWARN); in xprt_rdma_bc_allocate() 118 rqst->rq_rbuffer = kmalloc(rqst->rq_rcvsize, GFP_NOIO | __GFP_NOWARN); in xprt_rdma_bc_allocate()
|
| /linux/drivers/input/touchscreen/ |
| H A D | usbtouchscreen.c | 356 u8 *buf __free(kfree) = kzalloc(MTOUCHUSB_REQ_CTRLLR_ID_LEN, GFP_NOIO); in mtouch_get_fw_revision() 628 u8 *buf __free(kfree) = kmalloc(2, GFP_NOIO); in dmc_tsc10_init() 987 u8 *buf __free(kfree) = kmalloc(NEXIO_BUFSIZE, GFP_NOIO); in nexio_init() 1019 firmware_ver = kstrdup(&buf[2], GFP_NOIO); in nexio_init() 1023 device_name = kstrdup(&buf[2], GFP_NOIO); in nexio_init() 1394 return usb_submit_urb(usbtouch->irq, GFP_NOIO); in usbtouch_resume() 1419 return usb_submit_urb(usbtouch->irq, GFP_NOIO); in usbtouch_reset_resume()
|
| /linux/drivers/scsi/qedf/ |
| H A D | qedf_els.c | 300 cb_arg = kzalloc_obj(struct qedf_els_cb_arg, GFP_NOIO); in qedf_send_rrq() 513 cb_arg = kzalloc_obj(struct qedf_els_cb_arg, GFP_NOIO); in qedf_send_adisc() 662 cb_arg = kzalloc_obj(struct qedf_els_cb_arg, GFP_NOIO); in qedf_send_srr() 711 cb_arg = kzalloc_obj(struct qedf_els_cb_arg, GFP_NOIO); in qedf_initiate_seq_cleanup() 1036 cb_arg = kzalloc_obj(struct qedf_els_cb_arg, GFP_NOIO); in qedf_send_rec()
|
| /linux/drivers/md/ |
| H A D | dm-io-rewind.c | 147 GFP_NOIO, bs); in dm_io_rewind()
|
| /linux/drivers/xen/xenbus/ |
| H A D | xenbus_probe_frontend.c | 379 be_watch.node = kasprintf(GFP_NOIO | __GFP_HIGH, "%s/state", be); in xenbus_reset_frontend() 416 frontend = kasprintf(GFP_NOIO | __GFP_HIGH, "device/%s/%s", class, dev); in xenbus_check_frontend()
|
| /linux/drivers/net/usb/ |
| H A D | kaweth.c | 449 kaweth_resubmit_rx_urb(kaweth, GFP_NOIO); in kaweth_resubmit_tl() 452 kaweth_resubmit_int_urb(kaweth, GFP_NOIO); in kaweth_resubmit_tl() 853 kaweth_resubmit_rx_urb(kaweth, GFP_NOIO); in kaweth_resume() 854 kaweth_resubmit_int_urb(kaweth, GFP_NOIO); in kaweth_resume()
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_bitmap.c | 397 new_pages = kzalloc(bytes, GFP_NOIO | __GFP_NOWARN); in bm_realloc_pages() 399 new_pages = __vmalloc(bytes, GFP_NOIO | __GFP_ZERO); in bm_realloc_pages() 408 page = alloc_page(GFP_NOIO | __GFP_HIGHMEM); in bm_realloc_pages() 1038 GFP_NOIO | __GFP_HIGHMEM); in bm_page_io_async() 1043 bio = bio_alloc_bioset(device->ldev->md_bdev, 1, op, GFP_NOIO, in bm_page_io_async() 1081 ctx = kmalloc_obj(struct drbd_bm_aio_ctx, GFP_NOIO); in bm_rw()
|
| /linux/Documentation/driver-api/usb/ |
| H A D | callbacks.rst | 127 If you need to allocate memory here, use GFP_NOIO or GFP_ATOMIC, if you 140 If you need to allocate memory here, use GFP_NOIO or GFP_ATOMIC, if you
|