/fs/quota/ |
D | quota.c | 187 static void copy_to_if_dqblk(struct if_dqblk *dst, struct qc_dqblk *src) in copy_to_if_dqblk() argument 190 dst->dqb_bhardlimit = stoqb(src->d_spc_hardlimit); in copy_to_if_dqblk() 191 dst->dqb_bsoftlimit = stoqb(src->d_spc_softlimit); in copy_to_if_dqblk() 192 dst->dqb_curspace = src->d_space; in copy_to_if_dqblk() 193 dst->dqb_ihardlimit = src->d_ino_hardlimit; in copy_to_if_dqblk() 194 dst->dqb_isoftlimit = src->d_ino_softlimit; in copy_to_if_dqblk() 195 dst->dqb_curinodes = src->d_ino_count; in copy_to_if_dqblk() 196 dst->dqb_btime = src->d_spc_timer; in copy_to_if_dqblk() 197 dst->dqb_itime = src->d_ino_timer; in copy_to_if_dqblk() 261 static void copy_from_if_dqblk(struct qc_dqblk *dst, struct if_dqblk *src) in copy_from_if_dqblk() argument [all …]
|
/fs/ |
D | stack.c | 11 void fsstack_copy_inode_size(struct inode *dst, struct inode *src) in fsstack_copy_inode_size() argument 22 i_size = i_size_read(src); in fsstack_copy_inode_size() 35 spin_lock(&src->i_lock); in fsstack_copy_inode_size() 36 i_blocks = src->i_blocks; in fsstack_copy_inode_size() 38 spin_unlock(&src->i_lock); in fsstack_copy_inode_size() 63 void fsstack_copy_attr_all(struct inode *dest, const struct inode *src) in fsstack_copy_attr_all() argument 65 dest->i_mode = src->i_mode; in fsstack_copy_attr_all() 66 dest->i_uid = src->i_uid; in fsstack_copy_attr_all() 67 dest->i_gid = src->i_gid; in fsstack_copy_attr_all() 68 dest->i_rdev = src->i_rdev; in fsstack_copy_attr_all() [all …]
|
/fs/smb/client/ |
D | unc.c | 20 const char *src; in extract_hostname() local 28 for (src = unc; *src && *src == '\\'; src++) in extract_hostname() 30 if (!*src) in extract_hostname() 34 delim = strchr(src, '\\'); in extract_hostname() 38 len = delim - src; in extract_hostname() 43 memcpy(dst, src, len); in extract_hostname() 51 const char *src; in extract_sharename() local 55 src = unc + 2; in extract_sharename() 58 delim = strchr(src, '\\'); in extract_sharename()
|
D | cifs_unicode.c | 347 cifs_strndup_from_utf16(const char *src, const int maxlen, in cifs_strndup_from_utf16() argument 354 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage); in cifs_strndup_from_utf16() 359 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16() 362 dst = kstrndup(src, maxlen, GFP_KERNEL); in cifs_strndup_from_utf16() 616 cifs_strndup_to_utf16(const char *src, const int maxlen, int *utf16_len, in cifs_strndup_to_utf16() argument 622 len = cifs_local_to_utf16_bytes(src, maxlen, cp); in cifs_strndup_to_utf16() 629 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16()
|
/fs/hfsplus/ |
D | bnode.c | 122 struct hfs_bnode *src_node, int src, int len) in hfs_bnode_copy() argument 127 hfs_dbg(BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_copy() 130 src += src_node->page_offset; in hfs_bnode_copy() 132 src_page = src_node->page + (src >> PAGE_SHIFT); in hfs_bnode_copy() 133 src &= ~PAGE_MASK; in hfs_bnode_copy() 137 if (src == dst) { in hfs_bnode_copy() 138 l = min_t(int, len, PAGE_SIZE - src); in hfs_bnode_copy() 139 memcpy_page(*dst_page, src, *src_page, src, l); in hfs_bnode_copy() 152 src_ptr = kmap_local_page(*src_page) + src; in hfs_bnode_copy() 153 if (PAGE_SIZE - src < PAGE_SIZE - dst) { in hfs_bnode_copy() [all …]
|
/fs/udf/ |
D | udftime.c | 44 udf_disk_stamp_to_time(struct timespec64 *dest, struct timestamp src) in udf_disk_stamp_to_time() argument 46 u16 typeAndTimezone = le16_to_cpu(src.typeAndTimezone); in udf_disk_stamp_to_time() 47 u16 year = le16_to_cpu(src.year); in udf_disk_stamp_to_time() 60 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, in udf_disk_stamp_to_time() 61 src.second); in udf_disk_stamp_to_time() 63 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time() 64 src.hundredsOfMicroseconds * 100 + src.microseconds); in udf_disk_stamp_to_time()
|
/fs/hfs/ |
D | trans.c | 37 const char *src; in hfs_mac2asc() local 41 src = in->name; in hfs_mac2asc() 52 size = nls_disk->char2uni(src, srclen, &ch); in hfs_mac2asc() 57 src += size; in hfs_mac2asc() 60 ch = *src++; in hfs_mac2asc() 79 *dst++ = (ch = *src++) == '/' ? ':' : ch; in hfs_mac2asc() 101 const char *src; in hfs_asc2mac() local 105 src = in->name; in hfs_asc2mac() 113 size = nls_io->char2uni(src, srclen, &ch); in hfs_asc2mac() 118 src += size; in hfs_asc2mac() [all …]
|
/fs/ntfs3/ |
D | lznt.c | 48 static size_t longest_match_std(const u8 *src, struct lznt *ctx) in longest_match_std() argument 55 ((40543U * ((((src[0] << 4) ^ src[1]) << 4) ^ src[2])) >> 4) & in longest_match_std() 60 if (hash[0] >= ctx->unc && hash[0] < src && hash[0][0] == src[0] && in longest_match_std() 61 hash[0][1] == src[1] && hash[0][2] == src[2]) { in longest_match_std() 64 len1 += get_match_len(src + 3, ctx->unc_end, in longest_match_std() 68 if (hash[1] >= ctx->unc && hash[1] < src && hash[1][0] == src[0] && in longest_match_std() 69 hash[1][1] == src[1] && hash[1][2] == src[2]) { in longest_match_std() 72 len2 += get_match_len(src + 3, ctx->unc_end, in longest_match_std() 85 hash[0] = src; in longest_match_std() 89 static size_t longest_match_best(const u8 *src, struct lznt *ctx) in longest_match_best() argument [all …]
|
/fs/proc/ |
D | page.c | 51 unsigned long src = *ppos; in kpagecount_read() local 56 pfn = src / KPMSIZE; in kpagecount_read() 57 if (src & KPMMASK || count & KPMMASK) in kpagecount_read() 59 if (src >= max_dump_pfn * KPMSIZE) in kpagecount_read() 61 count = min_t(unsigned long, count, (max_dump_pfn * KPMSIZE) - src); in kpagecount_read() 235 unsigned long src = *ppos; in kpageflags_read() local 239 pfn = src / KPMSIZE; in kpageflags_read() 240 if (src & KPMMASK || count & KPMMASK) in kpageflags_read() 242 if (src >= max_dump_pfn * KPMSIZE) in kpageflags_read() 244 count = min_t(unsigned long, count, (max_dump_pfn * KPMSIZE) - src); in kpageflags_read() [all …]
|
/fs/unicode/ |
D | Makefile | 21 -a $(srctree)/$(src)/DerivedAge.txt \ 22 -c $(srctree)/$(src)/DerivedCombiningClass.txt \ 23 -p $(srctree)/$(src)/DerivedCoreProperties.txt \ 24 -d $(srctree)/$(src)/UnicodeData.txt \ 25 -f $(srctree)/$(src)/CaseFolding.txt \ 26 -n $(srctree)/$(src)/NormalizationCorrections.txt \ 27 -t $(srctree)/$(src)/NormalizationTest.txt \ 35 $(obj)/utf8data.c: $(src)/utf8data.c_shipped FORCE
|
/fs/ntfs3/lib/ |
D | decompress_common.h | 30 copy_unaligned_word(const void *src, void *dst) in copy_unaligned_word() argument 32 put_unaligned(get_unaligned((const size_t *)src), (size_t *)dst); in copy_unaligned_word() 257 const u8 *src = dst - offset; in lz_copy() local 287 copy_unaligned_word(src, dst); in lz_copy() 288 src += WORDBYTES; in lz_copy() 293 copy_unaligned_word(src, dst); in lz_copy() 294 src += WORDBYTES; in lz_copy() 309 src += WORDBYTES; in lz_copy() 329 *dst++ = *src++; in lz_copy() 333 *dst++ = *src++; in lz_copy() [all …]
|
/fs/reiserfs/ |
D | lbalance.c | 135 struct buffer_head *src, int last_first, in leaf_copy_boundary_item() argument 153 ih = item_head(src, 0); in leaf_copy_boundary_item() 158 || (!op_is_left_mergeable(&ih->ih_key, src->b_size))) in leaf_copy_boundary_item() 168 leaf_copy_dir_entries(dest_bi, src, FIRST_TO_LAST, 0, 0, in leaf_copy_boundary_item() 201 bytes_or_entries, ih_item_body(src, ih), 0); in leaf_copy_boundary_item() 220 src_nr_item = B_NR_ITEMS(src); in leaf_copy_boundary_item() 221 ih = item_head(src, src_nr_item - 1); in leaf_copy_boundary_item() 224 if (!dest_nr_item || !op_is_left_mergeable(&dih->ih_key, src->b_size)) in leaf_copy_boundary_item() 235 leaf_copy_dir_entries(dest_bi, src, LAST_TO_FIRST, in leaf_copy_boundary_item() 258 le_ih_k_offset(ih) + op_bytes_number(ih, src->b_size), in leaf_copy_boundary_item() [all …]
|
/fs/erofs/ |
D | decompressor.c | 131 void *src, *tmp; in z_erofs_lz4_handle_overlap() local 153 src = erofs_vm_map_ram(rq->in, ctx->inpages); in z_erofs_lz4_handle_overlap() 154 if (!src) in z_erofs_lz4_handle_overlap() 157 return src; in z_erofs_lz4_handle_overlap() 162 src = erofs_get_pcpubuf(ctx->inpages); in z_erofs_lz4_handle_overlap() 163 if (!src) { in z_erofs_lz4_handle_overlap() 169 tmp = src; in z_erofs_lz4_handle_overlap() 186 return src; in z_erofs_lz4_handle_overlap() 213 u8 *out, *headpage, *src; in z_erofs_lz4_decompress_mem() local 234 src = z_erofs_lz4_handle_overlap(ctx, headpage, dst, &inputmargin, in z_erofs_lz4_decompress_mem() [all …]
|
/fs/ntfs/ |
D | runlist.c | 20 static inline void ntfs_rl_mm(runlist_element *base, int dst, int src, in ntfs_rl_mm() argument 23 if (likely((dst != src) && (size > 0))) in ntfs_rl_mm() 24 memmove(base + dst, base + src, size * sizeof(*base)); in ntfs_rl_mm() 34 runlist_element *srcbase, int src, int size) in ntfs_rl_mc() argument 37 memcpy(dstbase + dst, srcbase + src, size * sizeof(*dstbase)); in ntfs_rl_mc() 142 runlist_element *src) in ntfs_are_rl_mergeable() argument 145 BUG_ON(!src); in ntfs_are_rl_mergeable() 148 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED)) in ntfs_are_rl_mergeable() 151 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable() 154 if ((dst->lcn >= 0) && (src->lcn >= 0) && in ntfs_are_rl_mergeable() [all …]
|
/fs/xfs/ |
D | xfs_reflink.c | 1021 struct xfs_inode *src, in xfs_reflink_set_inode_flag() argument 1024 struct xfs_mount *mp = src->i_mount; in xfs_reflink_set_inode_flag() 1028 if (xfs_is_reflink_inode(src) && xfs_is_reflink_inode(dest)) in xfs_reflink_set_inode_flag() 1036 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag() 1037 xfs_ilock(src, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag() 1039 xfs_lock_two_inodes(src, XFS_ILOCK_EXCL, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag() 1041 if (!xfs_is_reflink_inode(src)) { in xfs_reflink_set_inode_flag() 1042 trace_xfs_reflink_set_inode_flag(src); in xfs_reflink_set_inode_flag() 1043 xfs_trans_ijoin(tp, src, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag() 1044 src->i_diflags2 |= XFS_DIFLAG2_REFLINK; in xfs_reflink_set_inode_flag() [all …]
|
D | xfs_fsmap.c | 33 struct xfs_fsmap *src) in xfs_fsmap_from_internal() argument 35 dest->fmr_device = src->fmr_device; in xfs_fsmap_from_internal() 36 dest->fmr_flags = src->fmr_flags; in xfs_fsmap_from_internal() 37 dest->fmr_physical = BBTOB(src->fmr_physical); in xfs_fsmap_from_internal() 38 dest->fmr_owner = src->fmr_owner; in xfs_fsmap_from_internal() 39 dest->fmr_offset = BBTOB(src->fmr_offset); in xfs_fsmap_from_internal() 40 dest->fmr_length = BBTOB(src->fmr_length); in xfs_fsmap_from_internal() 50 struct fsmap *src) in xfs_fsmap_to_internal() argument 52 dest->fmr_device = src->fmr_device; in xfs_fsmap_to_internal() 53 dest->fmr_flags = src->fmr_flags; in xfs_fsmap_to_internal() [all …]
|
/fs/btrfs/ |
D | reflink.c | 332 static int btrfs_clone(struct inode *src, struct inode *inode, in btrfs_clone() argument 362 key.objectid = btrfs_ino(BTRFS_I(src)); in btrfs_clone() 378 ret = btrfs_search_slot(NULL, BTRFS_I(src)->root, &key, path, in btrfs_clone() 397 ret = btrfs_next_leaf(BTRFS_I(src)->root, path); in btrfs_clone() 409 key.objectid != btrfs_ino(BTRFS_I(src))) in btrfs_clone() 547 BTRFS_I(src)->last_reflink_trans = trans->transid; in btrfs_clone() 658 static int btrfs_extent_same_range(struct inode *src, u64 loff, u64 len, in btrfs_extent_same_range() argument 661 struct btrfs_fs_info *fs_info = BTRFS_I(src)->root->fs_info; in btrfs_extent_same_range() 669 btrfs_double_extent_lock(src, loff, dst, dst_loff, len); in btrfs_extent_same_range() 670 ret = btrfs_clone(src, dst, loff, len, ALIGN(len, bs), dst_loff, 1); in btrfs_extent_same_range() [all …]
|
D | zstd.c | 406 workspace->in_buf.src = kmap_local_page(in_page); in zstd_compress_pages() 478 kunmap_local(workspace->in_buf.src); in zstd_compress_pages() 483 workspace->in_buf.src = kmap_local_page(in_page); in zstd_compress_pages() 535 if (workspace->in_buf.src) { in zstd_compress_pages() 536 kunmap_local(workspace->in_buf.src); in zstd_compress_pages() 562 workspace->in_buf.src = kmap_local_page(pages_in[page_in_index]); in zstd_decompress_bio() 598 kunmap_local(workspace->in_buf.src); in zstd_decompress_bio() 601 workspace->in_buf.src = NULL; in zstd_decompress_bio() 606 workspace->in_buf.src = kmap_local_page(pages_in[page_in_index]); in zstd_decompress_bio() 614 if (workspace->in_buf.src) in zstd_decompress_bio() [all …]
|
/fs/nfsd/ |
D | nfsfh.h | 223 fh_copy(struct svc_fh *dst, struct svc_fh *src) in fh_copy() argument 225 WARN_ON(src->fh_dentry); in fh_copy() 227 *dst = *src; in fh_copy() 232 fh_copy_shallow(struct knfsd_fh *dst, struct knfsd_fh *src) in fh_copy_shallow() argument 234 dst->fh_size = src->fh_size; in fh_copy_shallow() 235 memcpy(&dst->fh_raw, &src->fh_raw, src->fh_size); in fh_copy_shallow()
|
/fs/efs/ |
D | inode.c | 32 static inline void extent_copy(efs_extent *src, efs_extent *dst) { in extent_copy() argument 39 dst->cooked.ex_magic = (unsigned int) src->raw[0]; in extent_copy() 40 dst->cooked.ex_bn = ((unsigned int) src->raw[1] << 16) | in extent_copy() 41 ((unsigned int) src->raw[2] << 8) | in extent_copy() 42 ((unsigned int) src->raw[3] << 0); in extent_copy() 43 dst->cooked.ex_length = (unsigned int) src->raw[4]; in extent_copy() 44 dst->cooked.ex_offset = ((unsigned int) src->raw[5] << 16) | in extent_copy() 45 ((unsigned int) src->raw[6] << 8) | in extent_copy() 46 ((unsigned int) src->raw[7] << 0); in extent_copy()
|
/fs/nfs/ |
D | nfs4_fs.h | 321 extern void nfs4_bitmask_set(__u32 bitmask[], const __u32 src[], 584 static inline void nfs4_stateid_copy(nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_copy() argument 586 memcpy(dst->data, src->data, sizeof(dst->data)); in nfs4_stateid_copy() 587 dst->type = src->type; in nfs4_stateid_copy() 590 static inline bool nfs4_stateid_match(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match() argument 592 if (dst->type != src->type) in nfs4_stateid_match() 594 return memcmp(dst->data, src->data, sizeof(dst->data)) == 0; in nfs4_stateid_match() 597 static inline bool nfs4_stateid_match_other(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match_other() argument 599 return memcmp(dst->other, src->other, NFS4_STATEID_OTHER_SIZE) == 0; in nfs4_stateid_match_other() 615 static inline bool nfs4_stateid_match_or_older(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match_or_older() argument [all …]
|
D | nfs42proc.c | 179 struct file *src, in handle_async_copy() argument 187 struct nfs_open_context *src_ctx = nfs_file_open_context(src); in handle_async_copy() 251 if (!nfs42_files_from_same_server(src, dst)) in handle_async_copy() 252 nfs42_do_offload_cancel_async(src, src_stateid); in handle_async_copy() 309 static ssize_t _nfs42_proc_copy(struct file *src, in _nfs42_proc_copy() argument 325 struct inode *src_inode = file_inode(src); in _nfs42_proc_copy() 345 status = nfs_filemap_write_and_wait_range(src->f_mapping, in _nfs42_proc_copy() 390 status = handle_async_copy(res, dst_server, src_server, src, in _nfs42_proc_copy() 412 ssize_t nfs42_proc_copy(struct file *src, loff_t pos_src, in nfs42_proc_copy() argument 421 .src_fh = NFS_FH(file_inode(src)), in nfs42_proc_copy() [all …]
|
/fs/fat/ |
D | fat.h | 273 static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) in fat16_towchar() argument 277 *dst++ = src[0] | (src[1] << 8); in fat16_towchar() 278 src += 2; in fat16_towchar() 281 memcpy(dst, src, len * 2); in fat16_towchar() 300 static inline void fatwchar_to16(__u8 *dst, const wchar_t *src, size_t len) in fatwchar_to16() argument 304 dst[0] = *src & 0x00FF; in fatwchar_to16() 305 dst[1] = (*src & 0xFF00) >> 8; in fatwchar_to16() 307 src++; in fatwchar_to16() 310 memcpy(dst, src, len * 2); in fatwchar_to16()
|
/fs/ext4/ |
D | crypto.c | 11 const struct fscrypt_name *src) in ext4_fname_from_fscrypt_name() argument 15 dst->usr_fname = src->usr_fname; in ext4_fname_from_fscrypt_name() 16 dst->disk_name = src->disk_name; in ext4_fname_from_fscrypt_name() 17 dst->hinfo.hash = src->hash; in ext4_fname_from_fscrypt_name() 18 dst->hinfo.minor_hash = src->minor_hash; in ext4_fname_from_fscrypt_name() 19 dst->crypto_buf = src->crypto_buf; in ext4_fname_from_fscrypt_name()
|
D | fsmap.c | 17 struct ext4_fsmap *src) in ext4_fsmap_from_internal() argument 19 dest->fmr_device = src->fmr_device; in ext4_fsmap_from_internal() 20 dest->fmr_flags = src->fmr_flags; in ext4_fsmap_from_internal() 21 dest->fmr_physical = src->fmr_physical << sb->s_blocksize_bits; in ext4_fsmap_from_internal() 22 dest->fmr_owner = src->fmr_owner; in ext4_fsmap_from_internal() 24 dest->fmr_length = src->fmr_length << sb->s_blocksize_bits; in ext4_fsmap_from_internal() 32 struct fsmap *src) in ext4_fsmap_to_internal() argument 34 dest->fmr_device = src->fmr_device; in ext4_fsmap_to_internal() 35 dest->fmr_flags = src->fmr_flags; in ext4_fsmap_to_internal() 36 dest->fmr_physical = src->fmr_physical >> sb->s_blocksize_bits; in ext4_fsmap_to_internal() [all …]
|