/fs/nfsd/ |
D | nfs4proc.c | 1089 void nfs4_put_copy(struct nfsd4_copy *copy) in nfs4_put_copy() argument 1091 if (!refcount_dec_and_test(©->refcount)) in nfs4_put_copy() 1093 kfree(copy); in nfs4_put_copy() 1097 check_and_set_stop_copy(struct nfsd4_copy *copy) in check_and_set_stop_copy() argument 1101 spin_lock(©->cp_clp->async_lock); in check_and_set_stop_copy() 1102 value = copy->stopped; in check_and_set_stop_copy() 1103 if (!copy->stopped) in check_and_set_stop_copy() 1104 copy->stopped = true; in check_and_set_stop_copy() 1105 spin_unlock(©->cp_clp->async_lock); in check_and_set_stop_copy() 1109 static void nfsd4_stop_copy(struct nfsd4_copy *copy) in nfsd4_stop_copy() argument [all …]
|
D | state.h | 626 int nfs4_init_cp_state(struct nfsd_net *nn, struct nfsd4_copy *copy); 627 void nfs4_free_cp_state(struct nfsd4_copy *copy); 654 extern void nfs4_put_copy(struct nfsd4_copy *copy);
|
D | nfs4xdr.c | 1748 nfsd4_decode_copy(struct nfsd4_compoundargs *argp, struct nfsd4_copy *copy) in nfsd4_decode_copy() argument 1752 status = nfsd4_decode_stateid(argp, ©->cp_src_stateid); in nfsd4_decode_copy() 1755 status = nfsd4_decode_stateid(argp, ©->cp_dst_stateid); in nfsd4_decode_copy() 1760 p = xdr_decode_hyper(p, ©->cp_src_pos); in nfsd4_decode_copy() 1761 p = xdr_decode_hyper(p, ©->cp_dst_pos); in nfsd4_decode_copy() 1762 p = xdr_decode_hyper(p, ©->cp_count); in nfsd4_decode_copy() 1764 copy->cp_synchronous = be32_to_cpup(p++); in nfsd4_decode_copy() 4259 struct nfsd4_copy *copy) in nfsd4_encode_copy() argument 4263 nfserr = nfsd42_encode_write_res(resp, ©->cp_res, in nfsd4_encode_copy() 4264 copy->cp_synchronous); in nfsd4_encode_copy() [all …]
|
D | xdr4.h | 628 struct nfsd4_copy copy; member
|
D | nfs4state.c | 744 int nfs4_init_cp_state(struct nfsd_net *nn, struct nfsd4_copy *copy) in nfs4_init_cp_state() argument 750 new_id = idr_alloc_cyclic(&nn->s2s_cp_stateids, copy, 0, 0, GFP_NOWAIT); in nfs4_init_cp_state() 755 copy->cp_stateid.si_opaque.so_id = new_id; in nfs4_init_cp_state() 756 copy->cp_stateid.si_opaque.so_clid.cl_boot = nn->boot_time; in nfs4_init_cp_state() 757 copy->cp_stateid.si_opaque.so_clid.cl_id = nn->s2s_cp_cl_id; in nfs4_init_cp_state() 761 void nfs4_free_cp_state(struct nfsd4_copy *copy) in nfs4_free_cp_state() argument 765 nn = net_generic(copy->cp_clp->net, nfsd_net_id); in nfs4_free_cp_state() 767 idr_remove(&nn->s2s_cp_stateids, copy->cp_stateid.si_opaque.so_id); in nfs4_free_cp_state()
|
/fs/dlm/ |
D | midcomms.c | 35 unsigned copy = len; in copy_from_cb() local 37 if ((copy + offset) > limit) in copy_from_cb() 38 copy = limit - offset; in copy_from_cb() 39 memcpy(dst, base + offset, copy); in copy_from_cb() 40 len -= copy; in copy_from_cb() 42 memcpy(dst + copy, base, len); in copy_from_cb()
|
/fs/nfs/ |
D | nfs42proc.c | 140 struct nfs4_copy_state *copy, *tmp_copy; in handle_async_copy() local 145 copy = kzalloc(sizeof(struct nfs4_copy_state), GFP_NOFS); in handle_async_copy() 146 if (!copy) in handle_async_copy() 161 kfree(copy); in handle_async_copy() 162 copy = tmp_copy; in handle_async_copy() 166 memcpy(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy() 167 init_completion(©->completion); in handle_async_copy() 168 copy->parent_state = ctx->state; in handle_async_copy() 170 list_add_tail(©->copies, &server->ss_copies); in handle_async_copy() 173 status = wait_for_completion_interruptible(©->completion); in handle_async_copy() [all …]
|
D | callback_proc.c | 701 struct nfs4_copy_state *copy, *tmp_copy; in nfs4_callback_offload() local 704 copy = kzalloc(sizeof(struct nfs4_copy_state), GFP_NOFS); in nfs4_callback_offload() 705 if (!copy) in nfs4_callback_offload() 726 memcpy(©->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload() 727 nfs4_copy_cb_args(copy, args); in nfs4_callback_offload() 728 list_add_tail(©->copies, &cps->clp->pending_cb_stateids); in nfs4_callback_offload() 730 kfree(copy); in nfs4_callback_offload()
|
D | nfs4state.c | 1557 struct nfs4_copy_state *copy; in nfs42_complete_copies() local 1563 list_for_each_entry(copy, &sp->so_server->ss_copies, copies) { in nfs42_complete_copies() 1564 if (!nfs4_stateid_match_other(&state->stateid, ©->parent_state->stateid)) in nfs42_complete_copies() 1566 copy->flags = 1; in nfs42_complete_copies() 1567 complete(©->completion); in nfs42_complete_copies()
|
/fs/fat/ |
D | dir.c | 1210 unsigned long size, copy; in fat_add_new_entries() local 1231 i = n = copy = 0; in fat_add_new_entries() 1243 copy = min(size, sb->s_blocksize); in fat_add_new_entries() 1246 memcpy(bhs[n]->b_data, slots, copy); in fat_add_new_entries() 1250 slots += copy; in fat_add_new_entries() 1251 size -= copy; in fat_add_new_entries() 1259 memset(bhs[n]->b_data + copy, 0, sb->s_blocksize - copy); in fat_add_new_entries() 1260 offset = copy - sizeof(struct msdos_dir_entry); in fat_add_new_entries() 1349 int copy = min_t(int, sb->s_blocksize - offset, size); in fat_add_entries() local 1350 memcpy(bhs[i]->b_data + offset, slots, copy); in fat_add_entries() [all …]
|
D | fatent.c | 379 int err, n, copy; in fat_mirror_bhs() local 382 for (copy = 1; copy < sbi->fats; copy++) { in fat_mirror_bhs() 383 sector_t backup_fat = sbi->fat_length * copy; in fat_mirror_bhs()
|
/fs/overlayfs/ |
D | Kconfig | 55 The inodes index feature prevents breaking of lower hardlinks on copy 76 The NFS export feature creates an index on copy up of every file and 110 bool "Overlayfs: turn on metadata only copy up feature by default" 115 copy up only metadata where appropriate and data copy up will
|
/fs/gfs2/ |
D | xattr.c | 681 unsigned int copy; in ea_write() local 701 copy = data_len > sdp->sd_jbsize ? sdp->sd_jbsize : in ea_write() 703 memcpy(bh->b_data + mh_size, data, copy); in ea_write() 704 if (copy < sdp->sd_jbsize) in ea_write() 705 memset(bh->b_data + mh_size + copy, 0, in ea_write() 706 sdp->sd_jbsize - copy); in ea_write() 709 data += copy; in ea_write() 710 data_len -= copy; in ea_write()
|
/fs/jffs2/ |
D | LICENCE | 16 You should have received a copy of the GNU General Public License along
|
/fs/btrfs/ |
D | Kconfig | 19 Btrfs is a general purpose copy-on-write filesystem with extents,
|
/fs/ |
D | namespace.c | 3044 char *copy; in copy_mount_options() local 3049 copy = kmalloc(PAGE_SIZE, GFP_KERNEL); in copy_mount_options() 3050 if (!copy) in copy_mount_options() 3062 i = size - exact_copy_from_user(copy, data, size); in copy_mount_options() 3064 kfree(copy); in copy_mount_options() 3068 memset(copy + i, 0, PAGE_SIZE - i); in copy_mount_options() 3069 return copy; in copy_mount_options()
|
D | userfaultfd.c | 1744 if (unlikely(put_user(ret, &user_uffdio_copy->copy))) in userfaultfd_copy()
|
/fs/cifs/ |
D | file.c | 3370 size_t copy = min_t(size_t, remaining, PAGE_SIZE); in cifs_readdata_to_iov() local 3376 written = copy_to_iter(addr, copy, iter); in cifs_readdata_to_iov() 3379 written = copy_page_to_iter(page, 0, copy, iter); in cifs_readdata_to_iov() 3381 if (written < copy && iov_iter_count(iter) > 0) in cifs_readdata_to_iov()
|