/Linux-v6.1/drivers/md/ |
D | dm-clone-target.c | 69 struct clone { struct 152 static enum clone_metadata_mode get_clone_mode(struct clone *clone) in get_clone_mode() argument 154 return READ_ONCE(clone->mode); in get_clone_mode() 157 static const char *clone_device_name(struct clone *clone) in clone_device_name() argument 159 return dm_table_device_name(clone->ti->table); in clone_device_name() 162 static void __set_clone_mode(struct clone *clone, enum clone_metadata_mode new_mode) in __set_clone_mode() argument 170 enum clone_metadata_mode old_mode = get_clone_mode(clone); in __set_clone_mode() 179 dm_clone_metadata_set_read_only(clone->cmd); in __set_clone_mode() 183 dm_clone_metadata_set_read_write(clone->cmd); in __set_clone_mode() 187 WRITE_ONCE(clone->mode, new_mode); in __set_clone_mode() [all …]
|
D | dm-rq.c | 20 struct request *orig, *clone; member 77 static void end_clone_bio(struct bio *clone) in end_clone_bio() argument 80 container_of(clone, struct dm_rq_clone_bio_info, clone); in end_clone_bio() 83 blk_status_t error = clone->bi_status; in end_clone_bio() 84 bool is_last = !clone->bi_next; in end_clone_bio() 86 bio_put(clone); in end_clone_bio() 155 static void dm_end_request(struct request *clone, blk_status_t error) in dm_end_request() argument 157 struct dm_rq_target_io *tio = clone->end_io_data; in dm_end_request() 161 blk_rq_unprep_clone(clone); in dm_end_request() 162 tio->ti->type->release_clone_rq(clone, NULL); in dm_end_request() [all …]
|
D | dm-zone.c | 369 unsigned int zno, struct bio *clone) in dm_zone_map_bio_begin() argument 386 switch (bio_op(clone)) { in dm_zone_map_bio_begin() 393 if ((clone->bi_iter.bi_sector & (zsectors - 1)) != zwp_offset) in dm_zone_map_bio_begin() 402 clone->bi_opf = REQ_OP_WRITE | REQ_NOMERGE | in dm_zone_map_bio_begin() 403 (clone->bi_opf & (~REQ_OP_MASK)); in dm_zone_map_bio_begin() 404 clone->bi_iter.bi_sector += zwp_offset; in dm_zone_map_bio_begin() 465 struct bio *clone) in dm_zone_lock() argument 467 if (WARN_ON_ONCE(bio_flagged(clone, BIO_ZONE_WRITE_LOCKED))) in dm_zone_lock() 471 bio_set_flag(clone, BIO_ZONE_WRITE_LOCKED); in dm_zone_lock() 475 struct bio *clone) in dm_zone_unlock() argument [all …]
|
D | dm.c | 91 static inline struct dm_target_io *clone_to_tio(struct bio *clone) in clone_to_tio() argument 93 return container_of(clone, struct dm_target_io, clone); in clone_to_tio() 116 return container_of(bio, struct dm_target_io, clone)->target_bio_nr; in dm_bio_get_target_bio_nr() 539 static void dm_start_io_acct(struct dm_io *io, struct bio *clone) in dm_start_io_acct() argument 548 if (!clone || likely(dm_tio_is_normal(clone_to_tio(clone)))) { in dm_start_io_acct() 574 struct bio *clone; in alloc_io() local 576 clone = bio_alloc_clone(NULL, bio, GFP_NOIO, &md->mempools->io_bs); in alloc_io() 577 tio = clone_to_tio(clone); in alloc_io() 603 bio_put(&io->tio.clone); in free_io() 611 struct bio *clone; in alloc_tio() local [all …]
|
D | dm-crypt.c | 237 static void crypt_endio(struct bio *clone); 1642 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone); 1664 struct bio *clone; in crypt_alloc_buffer() local 1674 clone = bio_alloc_bioset(cc->dev->bdev, nr_iovecs, io->base_bio->bi_opf, in crypt_alloc_buffer() 1676 clone->bi_private = io; in crypt_alloc_buffer() 1677 clone->bi_end_io = crypt_endio; in crypt_alloc_buffer() 1684 crypt_free_buffer_pages(cc, clone); in crypt_alloc_buffer() 1685 bio_put(clone); in crypt_alloc_buffer() 1692 bio_add_page(clone, page, len, 0); in crypt_alloc_buffer() 1698 if (dm_crypt_integrity_io_alloc(io, clone)) { in crypt_alloc_buffer() [all …]
|
D | dm-zoned-target.c | 103 static void dmz_clone_endio(struct bio *clone) in dmz_clone_endio() argument 105 struct dmz_bioctx *bioctx = clone->bi_private; in dmz_clone_endio() 106 blk_status_t status = clone->bi_status; in dmz_clone_endio() 108 bio_put(clone); in dmz_clone_endio() 123 struct bio *clone; in dmz_submit_bio() local 128 clone = bio_alloc_clone(dev->bdev, bio, GFP_NOIO, &dmz->bio_set); in dmz_submit_bio() 129 if (!clone) in dmz_submit_bio() 133 clone->bi_iter.bi_sector = in dmz_submit_bio() 135 clone->bi_iter.bi_size = dmz_blk2sect(nr_blocks) << SECTOR_SHIFT; in dmz_submit_bio() 136 clone->bi_end_io = dmz_clone_endio; in dmz_submit_bio() [all …]
|
D | dm-core.h | 248 struct bio clone; member 250 #define DM_TARGET_IO_BIO_OFFSET (offsetof(struct dm_target_io, clone)) 252 (offsetof(struct dm_target_io, clone) + offsetof(struct dm_io, tio))
|
/Linux-v6.1/Documentation/admin-guide/device-mapper/ |
D | dm-clone.rst | 4 dm-clone 10 dm-clone is a device mapper target which produces a one-to-one copy of an 15 The main use case of dm-clone is to clone a potentially remote, high-latency, 26 When the cloning completes, the dm-clone table can be removed altogether and be 29 The dm-clone target reuses the metadata library used by the thin-provisioning 56 clone of the source device. 68 dm-clone divides the source and destination devices in fixed sized regions. 72 The region size is configurable when you first create the dm-clone device. The 92 dm-clone interprets a discard request to a range that hasn't been hydrated yet 97 If the destination device supports discards, then by default dm-clone will pass [all …]
|
/Linux-v6.1/fs/f2fs/ |
D | acl.c | 295 struct posix_acl *clone = NULL; in f2fs_acl_clone() local 300 clone = kmemdup(acl, size, flags); in f2fs_acl_clone() 301 if (clone) in f2fs_acl_clone() 302 refcount_set(&clone->a_refcount, 1); in f2fs_acl_clone() 304 return clone; in f2fs_acl_clone() 366 struct posix_acl *clone; in f2fs_acl_create() local 383 clone = f2fs_acl_clone(p, GFP_NOFS); in f2fs_acl_create() 384 if (!clone) { in f2fs_acl_create() 389 ret = f2fs_acl_create_masq(clone, mode); in f2fs_acl_create() 394 posix_acl_release(clone); in f2fs_acl_create() [all …]
|
/Linux-v6.1/fs/ |
D | posix_acl.c | 206 struct posix_acl *clone = NULL; in posix_acl_clone() local 211 clone = kmemdup(acl, size, flags); in posix_acl_clone() 212 if (clone) in posix_acl_clone() 213 refcount_set(&clone->a_refcount, 1); in posix_acl_clone() 215 return clone; in posix_acl_clone() 544 struct posix_acl *clone = posix_acl_clone(*acl, gfp); in __posix_acl_create() local 546 if (clone) { in __posix_acl_create() 547 err = posix_acl_create_masq(clone, mode_p); in __posix_acl_create() 549 posix_acl_release(clone); in __posix_acl_create() 550 clone = NULL; in __posix_acl_create() [all …]
|
/Linux-v6.1/net/core/ |
D | timestamping.c | 25 struct sk_buff *clone; in skb_clone_tx_timestamp() local 37 clone = skb_clone_sk(skb); in skb_clone_tx_timestamp() 38 if (!clone) in skb_clone_tx_timestamp() 40 mii_ts->txtstamp(mii_ts, clone, type); in skb_clone_tx_timestamp()
|
/Linux-v6.1/include/linux/dsa/ |
D | ocelot.h | 14 struct sk_buff *clone; member 262 struct sk_buff *clone = OCELOT_SKB_CB(skb)->clone; in ocelot_ptp_rew_op() local 266 if (ptp_cmd == IFH_REW_OP_TWO_STEP_PTP && clone) { in ocelot_ptp_rew_op() 268 rew_op |= OCELOT_SKB_CB(clone)->ts_id << 3; in ocelot_ptp_rew_op()
|
/Linux-v6.1/net/ipv4/ |
D | inet_fragment.c | 484 struct sk_buff *clone; in inet_frag_reasm_prepare() local 487 clone = alloc_skb(0, GFP_ATOMIC); in inet_frag_reasm_prepare() 488 if (!clone) in inet_frag_reasm_prepare() 490 skb_shinfo(clone)->frag_list = skb_shinfo(head)->frag_list; in inet_frag_reasm_prepare() 494 clone->data_len = head->data_len - plen; in inet_frag_reasm_prepare() 495 clone->len = clone->data_len; in inet_frag_reasm_prepare() 496 head->truesize += clone->truesize; in inet_frag_reasm_prepare() 497 clone->csum = 0; in inet_frag_reasm_prepare() 498 clone->ip_summed = head->ip_summed; in inet_frag_reasm_prepare() 499 add_frag_mem_limit(q->fqdir, clone->truesize); in inet_frag_reasm_prepare() [all …]
|
/Linux-v6.1/net/rds/ |
D | tcp_recv.c | 161 struct sk_buff *clone; in rds_tcp_data_recv() local 218 clone = pskb_extract(skb, offset, to_copy, arg->gfp); in rds_tcp_data_recv() 219 if (!clone) { in rds_tcp_data_recv() 224 skb_queue_tail(&tinc->ti_skb_list, clone); in rds_tcp_data_recv() 229 clone, clone->data, clone->len); in rds_tcp_data_recv()
|
/Linux-v6.1/arch/um/kernel/skas/ |
D | Makefile | 6 obj-y := clone.o mmu.o process.o syscall.o uaccess.o 13 UNPROFILE_OBJS := clone.o
|
/Linux-v6.1/net/netfilter/ |
D | nft_set_pipapo.c | 520 struct nft_pipapo_match *m = priv->clone; in pipapo_get() 1106 static int pipapo_realloc_scratch(struct nft_pipapo_match *clone, argument 1131 kfree(*per_cpu_ptr(clone->scratch, i)); 1133 *per_cpu_ptr(clone->scratch, i) = scratch; 1137 *per_cpu_ptr(clone->scratch_aligned, i) = scratch_aligned; 1162 struct nft_pipapo_match *m = priv->clone; 1644 pipapo_gc(set, priv->clone); 1649 new_clone = pipapo_clone(priv->clone); 1656 rcu_assign_pointer(priv->match, priv->clone); 1660 priv->clone = new_clone; [all …]
|
/Linux-v6.1/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 590 struct sk_buff *clone) in ocelot_port_add_txtstamp_skb() argument 603 skb_shinfo(clone)->tx_flags |= SKBTX_IN_PROGRESS; in ocelot_port_add_txtstamp_skb() 605 OCELOT_SKB_CB(clone)->ts_id = ocelot_port->ts_id; in ocelot_port_add_txtstamp_skb() 614 skb_queue_tail(&ocelot_port->tx_skbs, clone); in ocelot_port_add_txtstamp_skb() 642 struct sk_buff **clone) in ocelot_port_txtstamp_request() argument 669 *clone = skb_clone_sk(skb); in ocelot_port_txtstamp_request() 670 if (!(*clone)) in ocelot_port_txtstamp_request() 673 err = ocelot_port_add_txtstamp_skb(ocelot, port, *clone); in ocelot_port_txtstamp_request() 678 OCELOT_SKB_CB(*clone)->ptp_class = ptp_class; in ocelot_port_txtstamp_request() 712 static bool ocelot_validate_ptp_skb(struct sk_buff *clone, u16 seqid) in ocelot_validate_ptp_skb() argument [all …]
|
/Linux-v6.1/drivers/net/usb/ |
D | lg-vl600.c | 103 struct sk_buff *clone; in vl600_rx_fixup() local 200 clone = skb_clone(buf, GFP_ATOMIC); in vl600_rx_fixup() 201 if (!clone) in vl600_rx_fixup() 204 skb_trim(clone, packet_len); in vl600_rx_fixup() 205 usbnet_skb_return(dev, clone); in vl600_rx_fixup()
|
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
D | usernv04.c | 35 bool clone; member 51 if (dmaobj->clone) { in nv04_dmaobj_bind() 99 dmaobj->clone = true; in nv04_dmaobj_new()
|
/Linux-v6.1/tools/perf/Documentation/ |
D | build-xed.txt | 4 $ git clone https://github.com/intelxed/mbuild.git mbuild 5 $ git clone https://github.com/intelxed/xed
|
/Linux-v6.1/Documentation/userspace-api/ |
D | unshare.rst | 38 threads. On Linux, at the time of thread creation using the clone system 58 when creating a new process using fork or clone, unshare() can benefit 96 works on an active task (as opposed to clone/fork working on a newly 98 changes to copy_* functions utilized by clone/fork system call. 108 unshare() reverses sharing that was done using clone(2) system call, 109 so unshare() should have a similar interface as clone(2). That is, 110 since flags in clone(int flags, void \*stack) specifies what should 113 the meaning of the flags from the way they are used in clone(2). 140 using clone(2). 182 clone(2), fork(2) [all …]
|
/Linux-v6.1/drivers/net/dsa/hirschmann/ |
D | hellcreek_hwtstamp.c | 378 struct sk_buff *clone; in hellcreek_port_txtstamp() local 395 clone = skb_clone_sk(skb); in hellcreek_port_txtstamp() 396 if (!clone) in hellcreek_port_txtstamp() 401 kfree_skb(clone); in hellcreek_port_txtstamp() 405 ps->tx_skb = clone; in hellcreek_port_txtstamp()
|
/Linux-v6.1/net/sched/ |
D | sch_etf.c | 138 struct sk_buff *clone; in report_sock_error() local 145 clone = skb_clone(skb, GFP_ATOMIC); in report_sock_error() 146 if (!clone) in report_sock_error() 149 serr = SKB_EXT_ERR(clone); in report_sock_error() 158 if (sock_queue_err_skb(sk, clone)) in report_sock_error() 159 kfree_skb(clone); in report_sock_error()
|
/Linux-v6.1/drivers/staging/fbtft/ |
D | README | 14 git clone https://github.com/notro/fbtft.git 21 git clone https://github.com/notro/fbtft.git
|
/Linux-v6.1/tools/perf/util/ |
D | mmap.c | 365 int mmap_cpu_mask__duplicate(struct mmap_cpu_mask *original, struct mmap_cpu_mask *clone) in mmap_cpu_mask__duplicate() argument 367 clone->nbits = original->nbits; in mmap_cpu_mask__duplicate() 368 clone->bits = bitmap_zalloc(original->nbits); in mmap_cpu_mask__duplicate() 369 if (!clone->bits) in mmap_cpu_mask__duplicate() 372 memcpy(clone->bits, original->bits, MMAP_CPU_MASK_BYTES(original)); in mmap_cpu_mask__duplicate()
|