Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 136) sorted by relevance

123456

/fs/quota/
Dquota.c184 static void copy_to_if_dqblk(struct if_dqblk *dst, struct qc_dqblk *src) in copy_to_if_dqblk() argument
187 dst->dqb_bhardlimit = stoqb(src->d_spc_hardlimit); in copy_to_if_dqblk()
188 dst->dqb_bsoftlimit = stoqb(src->d_spc_softlimit); in copy_to_if_dqblk()
189 dst->dqb_curspace = src->d_space; in copy_to_if_dqblk()
190 dst->dqb_ihardlimit = src->d_ino_hardlimit; in copy_to_if_dqblk()
191 dst->dqb_isoftlimit = src->d_ino_softlimit; in copy_to_if_dqblk()
192 dst->dqb_curinodes = src->d_ino_count; in copy_to_if_dqblk()
193 dst->dqb_btime = src->d_spc_timer; in copy_to_if_dqblk()
194 dst->dqb_itime = src->d_ino_timer; in copy_to_if_dqblk()
258 static void copy_from_if_dqblk(struct qc_dqblk *dst, struct if_dqblk *src) in copy_from_if_dqblk() argument
[all …]
/fs/
Dstack.c11 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/hfsplus/
Dbnode.c128 struct hfs_bnode *src_node, int src, int len) in hfs_bnode_copy() argument
133 hfs_dbg(BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_copy()
136 src += src_node->page_offset; in hfs_bnode_copy()
138 src_page = src_node->page + (src >> PAGE_SHIFT); in hfs_bnode_copy()
139 src &= ~PAGE_MASK; in hfs_bnode_copy()
143 if (src == dst) { in hfs_bnode_copy()
144 l = min_t(int, len, PAGE_SIZE - src); in hfs_bnode_copy()
145 memcpy(kmap(*dst_page) + src, kmap(*src_page) + src, l); in hfs_bnode_copy()
161 src_ptr = kmap(*src_page) + src; in hfs_bnode_copy()
163 if (PAGE_SIZE - src < PAGE_SIZE - dst) { in hfs_bnode_copy()
[all …]
/fs/erofs/
Ddecompressor.c134 void *src, *tmp; in z_erofs_handle_inplace_io() local
161 src = erofs_vm_map_ram(rq->in, nrpages_in); in z_erofs_handle_inplace_io()
162 if (!src) in z_erofs_handle_inplace_io()
165 return src; in z_erofs_handle_inplace_io()
170 src = erofs_get_pcpubuf(nrpages_in); in z_erofs_handle_inplace_io()
171 if (!src) { in z_erofs_handle_inplace_io()
177 tmp = src; in z_erofs_handle_inplace_io()
194 return src; in z_erofs_handle_inplace_io()
200 u8 *headpage, *src; in z_erofs_lz4_decompress() local
224 src = z_erofs_handle_inplace_io(rq, headpage, &inputmargin, &maptype, in z_erofs_lz4_decompress()
[all …]
/fs/udf/
Dudftime.c44 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/
Dtrans.c37 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/unicode/
DMakefile18 -a $(srctree)/$(src)/DerivedAge.txt \
19 -c $(srctree)/$(src)/DerivedCombiningClass.txt \
20 -p $(srctree)/$(src)/DerivedCoreProperties.txt \
21 -d $(srctree)/$(src)/UnicodeData.txt \
22 -f $(srctree)/$(src)/CaseFolding.txt \
23 -n $(srctree)/$(src)/NormalizationCorrections.txt \
24 -t $(srctree)/$(src)/NormalizationTest.txt \
32 $(obj)/utf8data.h: $(src)/utf8data.h_shipped FORCE
/fs/proc/
Dpage.c50 unsigned long src = *ppos; in kpagecount_read() local
55 pfn = src / KPMSIZE; in kpagecount_read()
56 if (src & KPMMASK || count & KPMMASK) in kpagecount_read()
58 if (src >= max_dump_pfn * KPMSIZE) in kpagecount_read()
60 count = min_t(unsigned long, count, (max_dump_pfn * KPMSIZE) - src); in kpagecount_read()
233 unsigned long src = *ppos; in kpageflags_read() local
237 pfn = src / KPMSIZE; in kpageflags_read()
238 if (src & KPMMASK || count & KPMMASK) in kpageflags_read()
240 if (src >= max_dump_pfn * KPMSIZE) in kpageflags_read()
242 count = min_t(unsigned long, count, (max_dump_pfn * KPMSIZE) - src); in kpageflags_read()
[all …]
/fs/reiserfs/
Dlbalance.c135 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/ntfs/
Drunlist.c20 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/
Dxfs_reflink.c862 struct xfs_inode *src, in xfs_reflink_set_inode_flag() argument
865 struct xfs_mount *mp = src->i_mount; in xfs_reflink_set_inode_flag()
869 if (xfs_is_reflink_inode(src) && xfs_is_reflink_inode(dest)) in xfs_reflink_set_inode_flag()
877 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag()
878 xfs_ilock(src, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
880 xfs_lock_two_inodes(src, XFS_ILOCK_EXCL, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
882 if (!xfs_is_reflink_inode(src)) { in xfs_reflink_set_inode_flag()
883 trace_xfs_reflink_set_inode_flag(src); in xfs_reflink_set_inode_flag()
884 xfs_trans_ijoin(tp, src, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
885 src->i_d.di_flags2 |= XFS_DIFLAG2_REFLINK; in xfs_reflink_set_inode_flag()
[all …]
Dxfs_fsmap.c32 struct xfs_fsmap *src) in xfs_fsmap_from_internal() argument
34 dest->fmr_device = src->fmr_device; in xfs_fsmap_from_internal()
35 dest->fmr_flags = src->fmr_flags; in xfs_fsmap_from_internal()
36 dest->fmr_physical = BBTOB(src->fmr_physical); in xfs_fsmap_from_internal()
37 dest->fmr_owner = src->fmr_owner; in xfs_fsmap_from_internal()
38 dest->fmr_offset = BBTOB(src->fmr_offset); in xfs_fsmap_from_internal()
39 dest->fmr_length = BBTOB(src->fmr_length); in xfs_fsmap_from_internal()
49 struct fsmap *src) in xfs_fsmap_to_internal() argument
51 dest->fmr_device = src->fmr_device; in xfs_fsmap_to_internal()
52 dest->fmr_flags = src->fmr_flags; in xfs_fsmap_to_internal()
[all …]
Dxfs_trans_priv.h123 xfs_lsn_t *src) in xfs_trans_ail_copy_lsn() argument
127 *dst = *src; in xfs_trans_ail_copy_lsn()
135 xfs_lsn_t *src) in xfs_trans_ail_copy_lsn() argument
138 *dst = *src; in xfs_trans_ail_copy_lsn()
/fs/btrfs/
Dreflink.c328 static int btrfs_clone(struct inode *src, struct inode *inode, in btrfs_clone() argument
357 key.objectid = btrfs_ino(BTRFS_I(src)); in btrfs_clone()
375 ret = btrfs_search_slot(NULL, BTRFS_I(src)->root, &key, path, in btrfs_clone()
394 ret = btrfs_next_leaf(BTRFS_I(src)->root, path); in btrfs_clone()
406 key.objectid != btrfs_ino(BTRFS_I(src))) in btrfs_clone()
530 BTRFS_I(src)->last_reflink_trans = trans->transid; in btrfs_clone()
620 static int btrfs_extent_same_range(struct inode *src, u64 loff, u64 len, in btrfs_extent_same_range() argument
623 const u64 bs = BTRFS_I(src)->root->fs_info->sb->s_blocksize; in btrfs_extent_same_range()
630 btrfs_double_extent_lock(src, loff, dst, dst_loff, len); in btrfs_extent_same_range()
631 ret = btrfs_clone(src, dst, loff, len, ALIGN(len, bs), dst_loff, 1); in btrfs_extent_same_range()
[all …]
Drcu-string.h14 static inline struct rcu_string *rcu_string_strdup(const char *src, gfp_t mask) in rcu_string_strdup() argument
16 size_t len = strlen(src) + 1; in rcu_string_strdup()
22 if (WARN_ON(strscpy(ret->str, src, len) < 0)) { in rcu_string_strdup()
/fs/nfsd/
Dnfsfh.h173 fh_copy(struct svc_fh *dst, struct svc_fh *src) in fh_copy() argument
175 WARN_ON(src->fh_dentry || src->fh_locked); in fh_copy()
177 *dst = *src; in fh_copy()
182 fh_copy_shallow(struct knfsd_fh *dst, struct knfsd_fh *src) in fh_copy_shallow() argument
184 dst->fh_size = src->fh_size; in fh_copy_shallow()
185 memcpy(&dst->fh_base, &src->fh_base, src->fh_size); in fh_copy_shallow()
Dnfs4proc.c168 fh_dup2(struct svc_fh *dst, struct svc_fh *src) in fh_dup2() argument
171 dget(src->fh_dentry); in fh_dup2()
172 if (src->fh_export) in fh_dup2()
173 exp_get(src->fh_export); in fh_dup2()
174 *dst = *src; in fh_dup2()
1045 stateid_t *src_stateid, struct nfsd_file **src, in nfsd4_verify_copy() argument
1054 src_stateid, RD_STATE, src, NULL); in nfsd4_verify_copy()
1068 if (!S_ISREG(file_inode((*src)->nf_file)->i_mode) || in nfsd4_verify_copy()
1080 nfsd_file_put(*src); in nfsd4_verify_copy()
1081 *src = NULL; in nfsd4_verify_copy()
[all …]
/fs/efs/
Dinode.c30 static inline void extent_copy(efs_extent *src, efs_extent *dst) { in extent_copy() argument
37 dst->cooked.ex_magic = (unsigned int) src->raw[0]; in extent_copy()
38 dst->cooked.ex_bn = ((unsigned int) src->raw[1] << 16) | in extent_copy()
39 ((unsigned int) src->raw[2] << 8) | in extent_copy()
40 ((unsigned int) src->raw[3] << 0); in extent_copy()
41 dst->cooked.ex_length = (unsigned int) src->raw[4]; in extent_copy()
42 dst->cooked.ex_offset = ((unsigned int) src->raw[5] << 16) | in extent_copy()
43 ((unsigned int) src->raw[6] << 8) | in extent_copy()
44 ((unsigned int) src->raw[7] << 0); in extent_copy()
/fs/nfs/
Dnfs4_fs.h583 static inline void nfs4_stateid_copy(nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_copy() argument
585 memcpy(dst->data, src->data, sizeof(dst->data)); in nfs4_stateid_copy()
586 dst->type = src->type; in nfs4_stateid_copy()
589 static inline bool nfs4_stateid_match(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match() argument
591 if (dst->type != src->type) in nfs4_stateid_match()
593 return memcmp(dst->data, src->data, sizeof(dst->data)) == 0; in nfs4_stateid_match()
596 static inline bool nfs4_stateid_match_other(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match_other() argument
598 return memcmp(dst->other, src->other, NFS4_STATEID_OTHER_SIZE) == 0; in nfs4_stateid_match_other()
614 static inline bool nfs4_stateid_match_or_older(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match_or_older() argument
616 return nfs4_stateid_match_other(dst, src) && in nfs4_stateid_match_or_older()
[all …]
Dnfs42proc.c170 struct file *src, in handle_async_copy() argument
179 struct nfs_open_context *src_ctx = nfs_file_open_context(src); in handle_async_copy()
243 if (!nfs42_files_from_same_server(src, dst)) in handle_async_copy()
244 nfs42_do_offload_cancel_async(src, src_stateid); in handle_async_copy()
272 static ssize_t _nfs42_proc_copy(struct file *src, in _nfs42_proc_copy() argument
288 struct inode *src_inode = file_inode(src); in _nfs42_proc_copy()
308 status = nfs_filemap_write_and_wait_range(file_inode(src)->i_mapping, in _nfs42_proc_copy()
352 status = handle_async_copy(res, dst_server, src_server, src, in _nfs42_proc_copy()
384 ssize_t nfs42_proc_copy(struct file *src, loff_t pos_src, in nfs42_proc_copy() argument
393 .src_fh = NFS_FH(file_inode(src)), in nfs42_proc_copy()
[all …]
Dnfsroot.c164 static int __init root_nfs_copy(char *dest, const char *src, in root_nfs_copy() argument
167 if (strlcpy(dest, src, destlen) > destlen) in root_nfs_copy()
172 static int __init root_nfs_cat(char *dest, const char *src, in root_nfs_cat() argument
181 if (strlcat(dest, src, destlen) > destlen) in root_nfs_cat()
/fs/fat/
Dfat.h272 static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) in fat16_towchar() argument
276 *dst++ = src[0] | (src[1] << 8); in fat16_towchar()
277 src += 2; in fat16_towchar()
280 memcpy(dst, src, len * 2); in fat16_towchar()
299 static inline void fatwchar_to16(__u8 *dst, const wchar_t *src, size_t len) in fatwchar_to16() argument
303 dst[0] = *src & 0x00FF; in fatwchar_to16()
304 dst[1] = (*src & 0xFF00) >> 8; in fatwchar_to16()
306 src++; in fatwchar_to16()
309 memcpy(dst, src, len * 2); in fatwchar_to16()
/fs/cifs/
Dcifs_unicode.c348 cifs_strndup_from_utf16(const char *src, const int maxlen, in cifs_strndup_from_utf16() argument
355 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage); in cifs_strndup_from_utf16()
360 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16()
363 dst = kstrndup(src, maxlen, GFP_KERNEL); in cifs_strndup_from_utf16()
617 cifs_strndup_to_utf16(const char *src, const int maxlen, int *utf16_len, in cifs_strndup_to_utf16() argument
623 len = cifs_local_to_utf16_bytes(src, maxlen, cp); in cifs_strndup_to_utf16()
630 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16()
/fs/ext4/
Dfsmap.c17 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 …]
/fs/cramfs/
Duncompress.c31 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) in cramfs_uncompress_block() argument
35 stream.next_in = src; in cramfs_uncompress_block()
55 pr_err("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); in cramfs_uncompress_block()

123456