/fs/quota/ |
D | quota.c | 190 static void copy_to_if_dqblk(struct if_dqblk *dst, struct qc_dqblk *src) in copy_to_if_dqblk() argument 192 memset(dst, 0, sizeof(*dst)); in copy_to_if_dqblk() 193 dst->dqb_bhardlimit = stoqb(src->d_spc_hardlimit); in copy_to_if_dqblk() 194 dst->dqb_bsoftlimit = stoqb(src->d_spc_softlimit); in copy_to_if_dqblk() 195 dst->dqb_curspace = src->d_space; in copy_to_if_dqblk() 196 dst->dqb_ihardlimit = src->d_ino_hardlimit; in copy_to_if_dqblk() 197 dst->dqb_isoftlimit = src->d_ino_softlimit; in copy_to_if_dqblk() 198 dst->dqb_curinodes = src->d_ino_count; in copy_to_if_dqblk() 199 dst->dqb_btime = src->d_spc_timer; in copy_to_if_dqblk() 200 dst->dqb_itime = src->d_ino_timer; in copy_to_if_dqblk() [all …]
|
/fs/ntfs/ |
D | runlist.c | 34 static inline void ntfs_rl_mm(runlist_element *base, int dst, int src, in ntfs_rl_mm() argument 37 if (likely((dst != src) && (size > 0))) in ntfs_rl_mm() 38 memmove(base + dst, base + src, size * sizeof(*base)); in ntfs_rl_mm() 47 static inline void ntfs_rl_mc(runlist_element *dstbase, int dst, in ntfs_rl_mc() argument 51 memcpy(dstbase + dst, srcbase + src, size * sizeof(*dstbase)); in ntfs_rl_mc() 155 static inline bool ntfs_are_rl_mergeable(runlist_element *dst, in ntfs_are_rl_mergeable() argument 158 BUG_ON(!dst); in ntfs_are_rl_mergeable() 162 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED)) in ntfs_are_rl_mergeable() 165 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable() 168 if ((dst->lcn >= 0) && (src->lcn >= 0) && in ntfs_are_rl_mergeable() [all …]
|
/fs/hfs/ |
D | trans.c | 38 char *dst; in hfs_mac2asc() local 45 dst = out; in hfs_mac2asc() 65 size = nls_io->uni2char(ch, dst, dstlen); in hfs_mac2asc() 69 *dst = '?'; in hfs_mac2asc() 72 dst += size; in hfs_mac2asc() 79 *dst++ = (ch = *src++) == '/' ? ':' : ch; in hfs_mac2asc() 82 return dst - out; in hfs_mac2asc() 102 char *dst; in hfs_asc2mac() local 107 dst = out->name; in hfs_asc2mac() 123 size = nls_disk->uni2char(ch, dst, dstlen); in hfs_asc2mac() [all …]
|
/fs/xfs/ |
D | xfs_icache.h | 90 struct xfs_eofblocks *dst) in xfs_fs_eofblocks_from_user() argument 102 dst->eof_flags = src->eof_flags; in xfs_fs_eofblocks_from_user() 103 dst->eof_prid = src->eof_prid; in xfs_fs_eofblocks_from_user() 104 dst->eof_min_file_size = src->eof_min_file_size; in xfs_fs_eofblocks_from_user() 105 dst->eof_scan_owner = NULLFSINO; in xfs_fs_eofblocks_from_user() 107 dst->eof_uid = INVALID_UID; in xfs_fs_eofblocks_from_user() 109 dst->eof_uid = make_kuid(current_user_ns(), src->eof_uid); in xfs_fs_eofblocks_from_user() 110 if (!uid_valid(dst->eof_uid)) in xfs_fs_eofblocks_from_user() 114 dst->eof_gid = INVALID_GID; in xfs_fs_eofblocks_from_user() 116 dst->eof_gid = make_kgid(current_user_ns(), src->eof_gid); in xfs_fs_eofblocks_from_user() [all …]
|
D | xfs_qm_syscalls.c | 640 struct qc_dqblk *dst) in xfs_qm_scall_getquota() argument 663 memset(dst, 0, sizeof(*dst)); in xfs_qm_scall_getquota() 664 dst->d_spc_hardlimit = in xfs_qm_scall_getquota() 666 dst->d_spc_softlimit = in xfs_qm_scall_getquota() 668 dst->d_ino_hardlimit = be64_to_cpu(dqp->q_core.d_ino_hardlimit); in xfs_qm_scall_getquota() 669 dst->d_ino_softlimit = be64_to_cpu(dqp->q_core.d_ino_softlimit); in xfs_qm_scall_getquota() 670 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_res_bcount); in xfs_qm_scall_getquota() 671 dst->d_ino_count = dqp->q_res_icount; in xfs_qm_scall_getquota() 672 dst->d_spc_timer = be32_to_cpu(dqp->q_core.d_btimer); in xfs_qm_scall_getquota() 673 dst->d_ino_timer = be32_to_cpu(dqp->q_core.d_itimer); in xfs_qm_scall_getquota() [all …]
|
D | xfs_trans_priv.h | 157 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument 162 *dst = *src; in xfs_trans_ail_copy_lsn() 169 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument 173 *dst = *src; in xfs_trans_ail_copy_lsn()
|
/fs/hfsplus/ |
D | bnode.c | 126 void hfs_bnode_copy(struct hfs_bnode *dst_node, int dst, in hfs_bnode_copy() argument 133 hfs_dbg(BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_copy() 138 dst += dst_node->page_offset; in hfs_bnode_copy() 141 dst_page = dst_node->page + (dst >> PAGE_CACHE_SHIFT); in hfs_bnode_copy() 142 dst &= ~PAGE_CACHE_MASK; in hfs_bnode_copy() 144 if (src == dst) { in hfs_bnode_copy() 163 dst_ptr = kmap(*dst_page) + dst; in hfs_bnode_copy() 164 if (PAGE_CACHE_SIZE - src < PAGE_CACHE_SIZE - dst) { in hfs_bnode_copy() 167 dst += l; in hfs_bnode_copy() 169 l = PAGE_CACHE_SIZE - dst; in hfs_bnode_copy() [all …]
|
/fs/ |
D | stack.c | 10 void fsstack_copy_inode_size(struct inode *dst, struct inode *src) in fsstack_copy_inode_size() argument 54 spin_lock(&dst->i_lock); in fsstack_copy_inode_size() 55 i_size_write(dst, i_size); in fsstack_copy_inode_size() 56 dst->i_blocks = i_blocks; in fsstack_copy_inode_size() 58 spin_unlock(&dst->i_lock); in fsstack_copy_inode_size()
|
/fs/cifs/ |
D | cifs_unicode.c | 361 char *dst; in cifs_strndup_from_utf16() local 366 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_from_utf16() 367 if (!dst) in cifs_strndup_from_utf16() 369 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16() 372 dst = kstrndup(src, maxlen, GFP_KERNEL); in cifs_strndup_from_utf16() 375 return dst; in cifs_strndup_from_utf16() 627 __le16 *dst; in cifs_strndup_to_utf16() local 631 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_to_utf16() 632 if (!dst) { in cifs_strndup_to_utf16() 636 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16() [all …]
|
D | smb2inode.c | 118 move_smb2_info_to_cifs(FILE_ALL_INFO *dst, struct smb2_file_all_info *src) in move_smb2_info_to_cifs() argument 120 memcpy(dst, src, (size_t)(&src->CurrentByteOffset) - (size_t)src); in move_smb2_info_to_cifs() 121 dst->CurrentByteOffset = src->CurrentByteOffset; in move_smb2_info_to_cifs() 122 dst->Mode = src->Mode; in move_smb2_info_to_cifs() 123 dst->AlignmentRequirement = src->AlignmentRequirement; in move_smb2_info_to_cifs() 124 dst->IndexNumber1 = 0; /* we don't use it */ in move_smb2_info_to_cifs()
|
/fs/nilfs2/ |
D | page.c | 211 static void nilfs_copy_page(struct page *dst, struct page *src, int copy_dirty) in nilfs_copy_page() argument 216 BUG_ON(PageWriteback(dst)); in nilfs_copy_page() 219 if (!page_has_buffers(dst)) in nilfs_copy_page() 220 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page() 225 dbh = dbufs = page_buffers(dst); in nilfs_copy_page() 236 copy_highpage(dst, src); in nilfs_copy_page() 238 if (PageUptodate(src) && !PageUptodate(dst)) in nilfs_copy_page() 239 SetPageUptodate(dst); in nilfs_copy_page() 240 else if (!PageUptodate(src) && PageUptodate(dst)) in nilfs_copy_page() 241 ClearPageUptodate(dst); in nilfs_copy_page() [all …]
|
/fs/nfsd/ |
D | nfsfh.h | 167 fh_copy(struct svc_fh *dst, struct svc_fh *src) in fh_copy() argument 171 *dst = *src; in fh_copy() 172 return dst; in fh_copy() 176 fh_copy_shallow(struct knfsd_fh *dst, struct knfsd_fh *src) in fh_copy_shallow() argument 178 dst->fh_size = src->fh_size; in fh_copy_shallow() 179 memcpy(&dst->fh_base, &src->fh_base, src->fh_size); in fh_copy_shallow()
|
/fs/ecryptfs/ |
D | crypto.c | 50 void ecryptfs_to_hex(char *dst, char *src, size_t src_size) in ecryptfs_to_hex() argument 55 sprintf(&dst[x * 2], "%.2x", (unsigned char)src[x]); in ecryptfs_to_hex() 65 void ecryptfs_from_hex(char *dst, char *src, int dst_size) in ecryptfs_from_hex() argument 73 dst[x] = (unsigned char)simple_strtol(tmp, NULL, 16); in ecryptfs_from_hex() 87 static int ecryptfs_calculate_md5(char *dst, in ecryptfs_calculate_md5() argument 126 rc = crypto_hash_final(&desc, dst); in ecryptfs_calculate_md5() 175 char dst[MD5_DIGEST_SIZE]; in ecryptfs_derive_iv() local 193 rc = ecryptfs_calculate_md5(dst, crypt_stat, src, in ecryptfs_derive_iv() 200 memcpy(iv, dst, crypt_stat->iv_bytes); in ecryptfs_derive_iv() 686 char dst[MD5_DIGEST_SIZE]; in ecryptfs_compute_root_iv() local [all …]
|
/fs/nfs/ |
D | internal.h | 295 nfs4_label_copy(struct nfs4_label *dst, struct nfs4_label *src) in nfs4_label_copy() argument 297 if (!dst || !src) in nfs4_label_copy() 303 dst->lfs = src->lfs; in nfs4_label_copy() 304 dst->pi = src->pi; in nfs4_label_copy() 305 dst->len = src->len; in nfs4_label_copy() 306 memcpy(dst->label, src->label, src->len); in nfs4_label_copy() 308 return dst; in nfs4_label_copy() 331 nfs4_label_copy(struct nfs4_label *dst, struct nfs4_label *src) in nfs4_label_copy() argument 467 int nfs_scan_commit_list(struct list_head *src, struct list_head *dst, 470 int nfs_scan_commit(struct inode *inode, struct list_head *dst, [all …]
|
D | nfs4_fs.h | 498 static inline void nfs4_stateid_copy(nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_copy() argument 500 memcpy(dst, src, sizeof(*dst)); in nfs4_stateid_copy() 503 static inline bool nfs4_stateid_match(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match() argument 505 return memcmp(dst, src, sizeof(*dst)) == 0; in nfs4_stateid_match() 508 static inline bool nfs4_stateid_match_other(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match_other() argument 510 return memcmp(dst->other, src->other, NFS4_STATEID_OTHER_SIZE) == 0; in nfs4_stateid_match_other()
|
/fs/pstore/ |
D | platform.c | 302 char *dst; in pstore_dump() local 311 dst = big_oops_buf; in pstore_dump() 312 hsize = sprintf(dst, "%s#%d Part%u\n", why, in pstore_dump() 316 if (!kmsg_dump_get_buffer(dumper, true, dst + hsize, in pstore_dump() 320 zipped_len = pstore_compress(dst, psinfo->buf, in pstore_dump() 331 dst = psinfo->buf; in pstore_dump() 332 hsize = sprintf(dst, "%s#%d Part%u\n", why, oopscount, in pstore_dump() 335 dst += hsize; in pstore_dump() 337 if (!kmsg_dump_get_buffer(dumper, true, dst, in pstore_dump()
|
/fs/xfs/libxfs/ |
D | xfs_attr_remote.c | 255 __uint8_t **dst) in xfs_attr_rmtval_copyout() argument 281 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout() 290 *dst += byte_cnt; in xfs_attr_rmtval_copyout() 305 char *dst = bp->b_addr; in xfs_attr_rmtval_copyin() local 317 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset, in xfs_attr_rmtval_copyin() 320 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin() 329 memset(dst + hdr_size + byte_cnt, 0, in xfs_attr_rmtval_copyin() 335 dst += blksize; in xfs_attr_rmtval_copyin() 357 __uint8_t *dst = args->value; in xfs_attr_rmtval_get() local 396 &dst); in xfs_attr_rmtval_get()
|
/fs/fat/ |
D | fat.h | 243 static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) in fat16_towchar() argument 247 *dst++ = src[0] | (src[1] << 8); in fat16_towchar() 251 memcpy(dst, src, len * 2); in fat16_towchar() 270 static inline void fatwchar_to16(__u8 *dst, const wchar_t *src, size_t len) in fatwchar_to16() argument 274 dst[0] = *src & 0x00FF; in fatwchar_to16() 275 dst[1] = (*src & 0xFF00) >> 8; in fatwchar_to16() 276 dst += 2; in fatwchar_to16() 280 memcpy(dst, src, len * 2); in fatwchar_to16()
|
/fs/hpfs/ |
D | hpfs_fn.h | 175 static inline void copy_de(struct hpfs_dirent *dst, struct hpfs_dirent *src) in copy_de() argument 179 if (!dst || !src) return; in copy_de() 180 a = dst->down; in copy_de() 181 n = dst->not_8x3; in copy_de() 182 memcpy((char *)dst + 2, (char *)src + 2, 28); in copy_de() 183 dst->down = a; in copy_de() 184 dst->not_8x3 = n; in copy_de()
|
/fs/cramfs/ |
D | uncompress.c | 30 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) in cramfs_uncompress_block() argument 37 stream.next_out = dst; in cramfs_uncompress_block() 54 pr_err("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); in cramfs_uncompress_block()
|
/fs/btrfs/ |
D | qgroup.c | 511 u64 src, u64 dst) in add_qgroup_relation_item() argument 523 key.offset = dst; in add_qgroup_relation_item() 535 u64 src, u64 dst) in del_qgroup_relation_item() argument 547 key.offset = dst; in del_qgroup_relation_item() 1116 struct ulist *tmp, u64 src, u64 dst, in quick_update_accounting() argument 1128 err = __qgroup_excl_accounting(fs_info, tmp, dst, in quick_update_accounting() 1142 struct btrfs_fs_info *fs_info, u64 src, u64 dst) in btrfs_add_qgroup_relation() argument 1152 if (btrfs_qgroup_level(src) >= btrfs_qgroup_level(dst)) in btrfs_add_qgroup_relation() 1166 parent = find_qgroup_rb(fs_info, dst); in btrfs_add_qgroup_relation() 1180 ret = add_qgroup_relation_item(trans, quota_root, src, dst); in btrfs_add_qgroup_relation() [all …]
|
/fs/f2fs/ |
D | node.h | 77 static inline void copy_node_info(struct node_info *dst, in copy_node_info() argument 80 dst->nid = src->nid; in copy_node_info() 81 dst->ino = src->ino; in copy_node_info() 82 dst->blk_addr = src->blk_addr; in copy_node_info() 83 dst->version = src->version; in copy_node_info() 284 static inline void copy_node_footer(struct page *dst, struct page *src) in copy_node_footer() argument 287 struct f2fs_node *dst_rn = F2FS_NODE(dst); in copy_node_footer()
|
D | file.c | 1037 pgoff_t src, pgoff_t dst, pgoff_t len, bool full) in __clone_blkaddrs() argument 1056 ret = get_dnode_of_data(&dn, dst + i, ALLOC_NODE); in __clone_blkaddrs() 1081 new_size = (dst + i) << PAGE_SHIFT; in __clone_blkaddrs() 1093 pdst = get_new_data_page(dst_inode, NULL, dst + i, in __clone_blkaddrs() 1114 struct inode *dst_inode, pgoff_t src, pgoff_t dst, in __exchange_data_block() argument 1143 do_replace, src, dst, olen, full); in __exchange_data_block() 1148 dst += olen; in __exchange_data_block() 2303 struct inode *dst = file_inode(file_out); in f2fs_move_file_range() local 2310 src->i_sb != dst->i_sb) in f2fs_move_file_range() 2316 if (!S_ISREG(src->i_mode) || !S_ISREG(dst->i_mode)) in f2fs_move_file_range() [all …]
|
/fs/crypto/ |
D | fname.c | 149 static int digest_encode(const char *src, int len, char *dst) in digest_encode() argument 152 char *cp = dst; in digest_encode() 166 return cp - dst; in digest_encode() 169 static int digest_decode(const char *src, int len, char *dst) in digest_decode() argument 173 char *cp = dst; in digest_decode() 190 return cp - dst; in digest_decode()
|
/fs/dlm/ |
D | midcomms.c | 34 static void copy_from_cb(void *dst, const void *base, unsigned offset, in copy_from_cb() argument 41 memcpy(dst, base + offset, copy); in copy_from_cb() 44 memcpy(dst + copy, base, len); in copy_from_cb()
|