Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 25 of 49) sorted by relevance

12

/fs/udf/
Dudftime.c44 udf_disk_stamp_to_time(struct timespec64 *dest, struct timestamp src) in udf_disk_stamp_to_time() argument
60 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, in udf_disk_stamp_to_time()
62 dest->tv_sec -= offset * 60; in udf_disk_stamp_to_time()
63 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time()
69 dest->tv_nsec %= NSEC_PER_SEC; in udf_disk_stamp_to_time()
73 udf_time_to_disk_stamp(struct timestamp *dest, struct timespec64 ts) in udf_time_to_disk_stamp() argument
81 dest->typeAndTimezone = cpu_to_le16(0x1000 | (offset & 0x0FFF)); in udf_time_to_disk_stamp()
85 dest->year = cpu_to_le16(tm.tm_year + 1900); in udf_time_to_disk_stamp()
86 dest->month = tm.tm_mon + 1; in udf_time_to_disk_stamp()
87 dest->day = tm.tm_mday; in udf_time_to_disk_stamp()
[all …]
/fs/
Dstack.c63 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()
69 dest->i_atime = src->i_atime; in fsstack_copy_attr_all()
70 dest->i_mtime = src->i_mtime; in fsstack_copy_attr_all()
71 dest->i_ctime = src->i_ctime; in fsstack_copy_attr_all()
72 dest->i_blkbits = src->i_blkbits; in fsstack_copy_attr_all()
73 dest->i_flags = src->i_flags; in fsstack_copy_attr_all()
[all …]
Dremap_range.c184 struct file *dest, loff_t dstoff, in vfs_dedupe_file_range_compare() argument
205 dst_folio = vfs_dedupe_get_folio(dest, dstoff); in vfs_dedupe_file_range_compare()
221 dst_folio->mapping != dest->f_mapping) { in vfs_dedupe_file_range_compare()
/fs/xfs/
Dxfs_fsmap.c32 struct fsmap *dest, 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()
41 dest->fmr_reserved[0] = 0; in xfs_fsmap_from_internal()
42 dest->fmr_reserved[1] = 0; in xfs_fsmap_from_internal()
43 dest->fmr_reserved[2] = 0; in xfs_fsmap_from_internal()
[all …]
Dxfs_reflink.c1022 struct xfs_inode *dest) in xfs_reflink_set_inode_flag() argument
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()
1039 xfs_lock_two_inodes(src, XFS_ILOCK_EXCL, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
1050 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag()
1053 if (!xfs_is_reflink_inode(dest)) { in xfs_reflink_set_inode_flag()
1054 trace_xfs_reflink_set_inode_flag(dest); in xfs_reflink_set_inode_flag()
1055 xfs_trans_ijoin(tp, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
1056 dest->i_diflags2 |= XFS_DIFLAG2_REFLINK; in xfs_reflink_set_inode_flag()
1057 xfs_trans_log_inode(tp, dest, XFS_ILOG_CORE); in xfs_reflink_set_inode_flag()
[all …]
Dxfs_inode_item_recover.c282 char *dest; in xlog_recover_inode_commit_pass2() local
507 dest = XFS_DFORK_APTR(dip); in xlog_recover_inode_commit_pass2()
509 memcpy(dest, src, len); in xlog_recover_inode_commit_pass2()
513 dest = XFS_DFORK_APTR(dip); in xlog_recover_inode_commit_pass2()
515 len, (struct xfs_bmdr_block *)dest, in xlog_recover_inode_commit_pass2()
Dxfs_reflink.h51 struct xfs_inode *dest, loff_t pos_out, loff_t remap_len,
53 extern int xfs_reflink_update_dest(struct xfs_inode *dest, xfs_off_t newlen,
Dxfs_file.c1113 struct xfs_inode *dest = XFS_I(inode_out); in xfs_file_remap_range() local
1134 trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out); in xfs_file_remap_range()
1136 ret = xfs_reflink_remap_blocks(src, pos_in, dest, pos_out, len, in xfs_file_remap_range()
1150 !(dest->i_diflags2 & XFS_DIFLAG2_COWEXTSIZE)) in xfs_file_remap_range()
1153 ret = xfs_reflink_update_dest(dest, pos_out + len, cowextsize, in xfs_file_remap_range()
1159 xfs_log_force_inode(dest); in xfs_file_remap_range()
1161 xfs_iunlock2_io_mmap(src, dest); in xfs_file_remap_range()
1163 trace_xfs_reflink_remap_range_error(dest, ret, _RET_IP_); in xfs_file_remap_range()
Dxfs_fsmap.h30 void xfs_fsmap_to_internal(struct xfs_fsmap *dest, struct fsmap *src);
/fs/btrfs/tests/
Dextent-io-tests.c63 #define PRINT_ONE_FLAG(state, dest, cur, name) \ argument
66 cur += scnprintf(dest + cur, STATE_FLAG_STR_LEN - cur, \
70 static void extent_flag_to_str(const struct extent_state *state, char *dest) in extent_flag_to_str() argument
74 dest[0] = 0; in extent_flag_to_str()
75 PRINT_ONE_FLAG(state, dest, cur, DIRTY); in extent_flag_to_str()
76 PRINT_ONE_FLAG(state, dest, cur, UPTODATE); in extent_flag_to_str()
77 PRINT_ONE_FLAG(state, dest, cur, LOCKED); in extent_flag_to_str()
78 PRINT_ONE_FLAG(state, dest, cur, NEW); in extent_flag_to_str()
79 PRINT_ONE_FLAG(state, dest, cur, DELALLOC); in extent_flag_to_str()
80 PRINT_ONE_FLAG(state, dest, cur, DEFRAG); in extent_flag_to_str()
[all …]
/fs/reiserfs/
Dlbalance.c19 struct buffer_head *dest = dest_bi->bi_bh; in leaf_copy_dir_entries() local
55 LAST_TO_FIRST) ? ((B_NR_ITEMS(dest)) ? 0 : -1) : (B_NR_ITEMS(dest) in leaf_copy_dir_entries()
66 leaf_key(dest, in leaf_copy_dir_entries()
104 LAST_TO_FIRST) ? 0 : B_NR_ITEMS(dest), in leaf_copy_dir_entries()
110 FIRST_TO_LAST) ? (B_NR_ITEMS(dest) - in leaf_copy_dir_entries()
117 (last_first == FIRST_TO_LAST) ? (B_NR_ITEMS(dest) - 1) : 0; in leaf_copy_dir_entries()
121 FIRST_TO_LAST) ? ih_entry_count(item_head(dest, in leaf_copy_dir_entries()
138 struct buffer_head *dest = dest_bi->bi_bh; in leaf_copy_boundary_item() local
144 dest_nr_item = B_NR_ITEMS(dest); in leaf_copy_boundary_item()
154 dih = item_head(dest, dest_nr_item - 1); in leaf_copy_boundary_item()
[all …]
Dibalance.c307 struct buffer_head *dest = dest_bi->bi_bh; in internal_copy_pointers_items() local
316 RFALSE(dest == NULL || src == NULL, in internal_copy_pointers_items()
317 "src (%p) or dest (%p) buffer is 0", src, dest); in internal_copy_pointers_items()
323 RFALSE(cpy_num - 1 + B_NR_ITEMS(dest) > (int)MAX_NR_KEY(dest), in internal_copy_pointers_items()
325 cpy_num, B_NR_ITEMS(dest), MAX_NR_KEY(dest)); in internal_copy_pointers_items()
331 blkh = B_BLK_HEAD(dest); in internal_copy_pointers_items()
343 dc = B_N_CHILD(dest, dest_order); in internal_copy_pointers_items()
351 key = internal_key(dest, dest_order); in internal_copy_pointers_items()
365 do_balance_mark_internal_dirty(dest_bi->tb, dest, 0); in internal_copy_pointers_items()
368 check_internal(dest); in internal_copy_pointers_items()
[all …]
Ddo_balan.c1552 void replace_key(struct tree_balance *tb, struct buffer_head *dest, int n_dest, in replace_key() argument
1556 RFALSE(dest == NULL || src == NULL, in replace_key()
1558 src, dest); in replace_key()
1559 RFALSE(!B_IS_KEYS_LEVEL(dest), in replace_key()
1561 dest); in replace_key()
1564 RFALSE(n_dest >= B_NR_ITEMS(dest) || n_src >= B_NR_ITEMS(src), in replace_key()
1566 n_src, B_NR_ITEMS(src), n_dest, B_NR_ITEMS(dest)); in replace_key()
1570 memcpy(internal_key(dest, n_dest), item_head(src, n_src), in replace_key()
1573 memcpy(internal_key(dest, n_dest), internal_key(src, n_src), in replace_key()
1576 do_balance_mark_internal_dirty(tb, dest, 0); in replace_key()
/fs/nfs/
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
175 size_t len = strlen(dest); in root_nfs_cat()
177 if (len && dest[len - 1] != ',') in root_nfs_cat()
178 if (strlcat(dest, ",", destlen) > destlen) in root_nfs_cat()
181 if (strlcat(dest, src, destlen) > destlen) in root_nfs_cat()
/fs/btrfs/
Dblock-rsv.c105 struct btrfs_block_rsv *dest, u64 num_bytes, in block_rsv_release_bytes() argument
137 if (dest) { in block_rsv_release_bytes()
138 spin_lock(&dest->lock); in block_rsv_release_bytes()
139 if (!dest->full) { in block_rsv_release_bytes()
142 bytes_to_add = dest->size - dest->reserved; in block_rsv_release_bytes()
144 dest->reserved += bytes_to_add; in block_rsv_release_bytes()
145 if (dest->reserved >= dest->size) in block_rsv_release_bytes()
146 dest->full = true; in block_rsv_release_bytes()
149 spin_unlock(&dest->lock); in block_rsv_release_bytes()
328 struct btrfs_block_rsv *dest, u64 num_bytes, in btrfs_cond_migrate_bytes() argument
[all …]
Draid56.c220 struct btrfs_raid_bio *dest, int page_nr) in steal_rbio_page() argument
226 if (dest->stripe_pages[page_nr]) in steal_rbio_page()
227 __free_page(dest->stripe_pages[page_nr]); in steal_rbio_page()
228 dest->stripe_pages[page_nr] = src->stripe_pages[page_nr]; in steal_rbio_page()
234 dest->stripe_sectors[i].uptodate = true; in steal_rbio_page()
244 static void steal_rbio(struct btrfs_raid_bio *src, struct btrfs_raid_bio *dest) in steal_rbio() argument
252 for (i = 0; i < dest->nr_pages; i++) { in steal_rbio()
257 steal_rbio_page(src, dest, i); in steal_rbio()
259 index_stripe_sectors(dest); in steal_rbio()
270 static void merge_rbio(struct btrfs_raid_bio *dest, in merge_rbio() argument
[all …]
Dverity.c292 char *dest, u64 len, struct page *dest_page) in read_key_bytes() argument
305 char *kaddr = dest; in read_key_bytes()
357 if (!dest) in read_key_bytes()
368 if (dest) { in read_key_bytes()
Dinode.c4701 struct btrfs_root *dest = BTRFS_I(inode)->root; in btrfs_delete_subvolume() local
4714 spin_lock(&dest->root_item_lock); in btrfs_delete_subvolume()
4715 if (dest->send_in_progress) { in btrfs_delete_subvolume()
4716 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
4719 dest->root_key.objectid); in btrfs_delete_subvolume()
4723 if (atomic_read(&dest->nr_swapfiles)) { in btrfs_delete_subvolume()
4724 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
4731 root_flags = btrfs_root_flags(&dest->root_item); in btrfs_delete_subvolume()
4732 btrfs_set_root_flags(&dest->root_item, in btrfs_delete_subvolume()
4734 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
[all …]
/fs/ext4/
Dfsmap.c16 void ext4_fsmap_from_internal(struct super_block *sb, struct fsmap *dest, 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()
23 dest->fmr_offset = 0; in ext4_fsmap_from_internal()
24 dest->fmr_length = src->fmr_length << sb->s_blocksize_bits; in ext4_fsmap_from_internal()
25 dest->fmr_reserved[0] = 0; in ext4_fsmap_from_internal()
26 dest->fmr_reserved[1] = 0; in ext4_fsmap_from_internal()
27 dest->fmr_reserved[2] = 0; in ext4_fsmap_from_internal()
[all …]
Dfsmap.h31 void ext4_fsmap_from_internal(struct super_block *sb, struct fsmap *dest,
33 void ext4_fsmap_to_internal(struct super_block *sb, struct ext4_fsmap *dest,
/fs/ecryptfs/
Dkeystore.c122 int ecryptfs_write_packet_length(char *dest, size_t size, in ecryptfs_write_packet_length() argument
128 dest[0] = size; in ecryptfs_write_packet_length()
131 dest[0] = (((size - 192) / 256) + 192); in ecryptfs_write_packet_length()
132 dest[1] = ((size - 192) % 256); in ecryptfs_write_packet_length()
619 ecryptfs_write_tag_70_packet(char *dest, size_t *remaining_bytes, in ecryptfs_write_tag_70_packet() argument
675 if (!dest) { in ecryptfs_write_tag_70_packet()
705 dest[s->i++] = ECRYPTFS_TAG_70_PACKET_TYPE; in ecryptfs_write_tag_70_packet()
706 rc = ecryptfs_write_packet_length(&dest[s->i], in ecryptfs_write_tag_70_packet()
718 ecryptfs_from_hex(&dest[s->i], in ecryptfs_write_tag_70_packet()
733 dest[s->i++] = s->cipher_code; in ecryptfs_write_tag_70_packet()
[all …]
/fs/f2fs/
Drecovery.c646 block_t src, dest; in do_recover_data() local
649 dest = data_blkaddr(dn.inode, page, dn.ofs_in_node); in do_recover_data()
658 if (__is_valid_data_blkaddr(dest) && in do_recover_data()
659 !f2fs_is_valid_blkaddr(sbi, dest, META_POR)) { in do_recover_data()
666 if (src == dest) in do_recover_data()
670 if (dest == NULL_ADDR) { in do_recover_data()
684 if (dest == NEW_ADDR) { in do_recover_data()
700 if (f2fs_is_valid_blkaddr(sbi, dest, META_POR)) { in do_recover_data()
716 err = check_index_in_prev_nodes(sbi, dest, &dn); in do_recover_data()
725 if (f2fs_is_valid_blkaddr(sbi, dest, in do_recover_data()
[all …]
/fs/unicode/
Dutf8-core.c100 unsigned char *dest, size_t dlen) in utf8_casefold() argument
111 dest[nlen] = c; in utf8_casefold()
142 unsigned char *dest, size_t dlen) in utf8_normalize() argument
153 dest[nlen] = c; in utf8_normalize()
/fs/ceph/
Dxattr.c703 char *dest) in __copy_xattr_names() argument
713 memcpy(dest, xattr->name, xattr->name_len); in __copy_xattr_names()
714 dest[xattr->name_len] = '\0'; in __copy_xattr_names()
716 dout("dest=%s %p (%s) (%d/%d)\n", dest, xattr, xattr->name, in __copy_xattr_names()
719 dest += xattr->name_len + 1; in __copy_xattr_names()
723 return dest; in __copy_xattr_names()
872 void *dest; in __ceph_build_xattrs_blob() local
881 dest = ci->i_xattrs.prealloc_blob->vec.iov_base; in __ceph_build_xattrs_blob()
883 ceph_encode_32(&dest, ci->i_xattrs.count); in __ceph_build_xattrs_blob()
887 ceph_encode_32(&dest, xattr->name_len); in __ceph_build_xattrs_blob()
[all …]
/fs/ocfs2/
Dextent_map.c157 static void ocfs2_copy_emi_fields(struct ocfs2_extent_map_item *dest, in ocfs2_copy_emi_fields() argument
160 dest->ei_cpos = src->ei_cpos; in ocfs2_copy_emi_fields()
161 dest->ei_phys = src->ei_phys; in ocfs2_copy_emi_fields()
162 dest->ei_clusters = src->ei_clusters; in ocfs2_copy_emi_fields()
163 dest->ei_flags = src->ei_flags; in ocfs2_copy_emi_fields()

12