/fs/udf/ |
D | udftime.c | 44 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 …]
|
D | udfdecl.h | 254 extern void udf_disk_stamp_to_time(struct timespec64 *dest, 256 extern void udf_time_to_disk_stamp(struct timestamp *dest, struct timespec64 src);
|
/fs/ |
D | stack.c | 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() 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 …]
|
/fs/xfs/ |
D | xfs_reflink.c | 865 struct xfs_inode *dest) in xfs_reflink_set_inode_flag() argument 871 if (xfs_is_reflink_inode(src) && xfs_is_reflink_inode(dest)) in xfs_reflink_set_inode_flag() 879 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag() 882 xfs_lock_two_inodes(src, XFS_ILOCK_EXCL, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag() 893 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag() 896 if (!xfs_is_reflink_inode(dest)) { in xfs_reflink_set_inode_flag() 897 trace_xfs_reflink_set_inode_flag(dest); in xfs_reflink_set_inode_flag() 898 xfs_trans_ijoin(tp, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag() 899 dest->i_d.di_flags2 |= XFS_DIFLAG2_REFLINK; in xfs_reflink_set_inode_flag() 900 xfs_trans_log_inode(tp, dest, XFS_ILOG_CORE); in xfs_reflink_set_inode_flag() [all …]
|
D | xfs_fsmap.c | 31 struct fsmap *dest, 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() 40 dest->fmr_reserved[0] = 0; in xfs_fsmap_from_internal() 41 dest->fmr_reserved[1] = 0; in xfs_fsmap_from_internal() 42 dest->fmr_reserved[2] = 0; in xfs_fsmap_from_internal() [all …]
|
D | xfs_fsmap.h | 30 void xfs_fsmap_from_internal(struct fsmap *dest, struct xfs_fsmap *src); 31 void xfs_fsmap_to_internal(struct xfs_fsmap *dest, struct fsmap *src);
|
D | xfs_reflink.h | 55 struct xfs_inode *dest, loff_t pos_out, loff_t remap_len, 57 extern int xfs_reflink_update_dest(struct xfs_inode *dest, xfs_off_t newlen,
|
D | xfs_file.c | 980 struct xfs_inode *dest = XFS_I(inode_out); in xfs_file_remap_range() local 1001 trace_xfs_reflink_remap_range(src, pos_in, len, dest, pos_out); in xfs_file_remap_range() 1003 ret = xfs_reflink_remap_blocks(src, pos_in, dest, pos_out, len, in xfs_file_remap_range() 1017 !(dest->i_d.di_flags2 & XFS_DIFLAG2_COWEXTSIZE)) in xfs_file_remap_range() 1020 ret = xfs_reflink_update_dest(dest, pos_out + len, cowextsize, in xfs_file_remap_range() 1026 trace_xfs_reflink_remap_range_error(dest, ret, _RET_IP_); in xfs_file_remap_range()
|
/fs/reiserfs/ |
D | lbalance.c | 19 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 …]
|
D | ibalance.c | 307 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 …]
|
D | do_balan.c | 1552 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/btrfs/ |
D | block-rsv.c | 11 struct btrfs_block_rsv *dest, u64 num_bytes, in block_rsv_release_bytes() argument 42 if (dest) { in block_rsv_release_bytes() 43 spin_lock(&dest->lock); in block_rsv_release_bytes() 44 if (!dest->full) { in block_rsv_release_bytes() 47 bytes_to_add = dest->size - dest->reserved; in block_rsv_release_bytes() 49 dest->reserved += bytes_to_add; in block_rsv_release_bytes() 50 if (dest->reserved >= dest->size) in block_rsv_release_bytes() 51 dest->full = 1; in block_rsv_release_bytes() 54 spin_unlock(&dest->lock); in block_rsv_release_bytes() 233 struct btrfs_block_rsv *dest, u64 num_bytes, in btrfs_cond_migrate_bytes() argument [all …]
|
D | inode.c | 4439 struct btrfs_root *dest = BTRFS_I(inode)->root; in btrfs_delete_subvolume() local 4451 spin_lock(&dest->root_item_lock); in btrfs_delete_subvolume() 4452 if (dest->send_in_progress) { in btrfs_delete_subvolume() 4453 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume() 4456 dest->root_key.objectid); in btrfs_delete_subvolume() 4459 root_flags = btrfs_root_flags(&dest->root_item); in btrfs_delete_subvolume() 4460 btrfs_set_root_flags(&dest->root_item, in btrfs_delete_subvolume() 4462 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume() 4466 err = may_destroy_subvol(dest); in btrfs_delete_subvolume() 4497 btrfs_record_root_in_trans(trans, dest); in btrfs_delete_subvolume() [all …]
|
D | raid56.c | 301 static void steal_rbio(struct btrfs_raid_bio *src, struct btrfs_raid_bio *dest) in steal_rbio() argument 310 for (i = 0; i < dest->nr_pages; i++) { in steal_rbio() 316 d = dest->stripe_pages[i]; in steal_rbio() 320 dest->stripe_pages[i] = s; in steal_rbio() 332 static void merge_rbio(struct btrfs_raid_bio *dest, in merge_rbio() argument 335 bio_list_merge(&dest->bio_list, &victim->bio_list); in merge_rbio() 336 dest->bio_list_bytes += victim->bio_list_bytes; in merge_rbio() 337 dest->generic_bio_cnt += victim->generic_bio_cnt; in merge_rbio() 514 void *dest = pages[src_cnt]; in run_xor() local 518 xor_blocks(xor_src_cnt, len, dest, pages + src_off); in run_xor()
|
/fs/nfs/ |
D | nfsroot.c | 158 static int __init root_nfs_copy(char *dest, const char *src, in root_nfs_copy() argument 161 if (strlcpy(dest, src, destlen) > destlen) in root_nfs_copy() 166 static int __init root_nfs_cat(char *dest, const char *src, in root_nfs_cat() argument 169 size_t len = strlen(dest); in root_nfs_cat() 171 if (len && dest[len - 1] != ',') in root_nfs_cat() 172 if (strlcat(dest, ",", destlen) > destlen) in root_nfs_cat() 175 if (strlcat(dest, src, destlen) > destlen) in root_nfs_cat()
|
/fs/ext4/ |
D | fsmap.c | 16 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 …]
|
D | fsmap.h | 31 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/ |
D | keystore.c | 122 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() 618 ecryptfs_write_tag_70_packet(char *dest, size_t *remaining_bytes, in ecryptfs_write_tag_70_packet() argument 674 if (!dest) { in ecryptfs_write_tag_70_packet() 704 dest[s->i++] = ECRYPTFS_TAG_70_PACKET_TYPE; in ecryptfs_write_tag_70_packet() 705 rc = ecryptfs_write_packet_length(&dest[s->i], in ecryptfs_write_tag_70_packet() 717 ecryptfs_from_hex(&dest[s->i], in ecryptfs_write_tag_70_packet() 732 dest[s->i++] = s->cipher_code; in ecryptfs_write_tag_70_packet() [all …]
|
/fs/sdcardfs/ |
D | sdcardfs.h | 633 static inline void sdcardfs_copy_and_fix_attrs(struct inode *dest, const struct inode *src) in sdcardfs_copy_and_fix_attrs() argument 635 dest->i_mode = (src->i_mode & S_IFMT) | S_IRWXU | S_IRWXG | in sdcardfs_copy_and_fix_attrs() 637 dest->i_uid = make_kuid(&init_user_ns, SDCARDFS_I(dest)->data->d_uid); in sdcardfs_copy_and_fix_attrs() 638 dest->i_gid = make_kgid(&init_user_ns, AID_SDCARD_RW); in sdcardfs_copy_and_fix_attrs() 639 dest->i_rdev = src->i_rdev; in sdcardfs_copy_and_fix_attrs() 640 dest->i_atime = src->i_atime; in sdcardfs_copy_and_fix_attrs() 641 dest->i_mtime = src->i_mtime; in sdcardfs_copy_and_fix_attrs() 642 dest->i_ctime = src->i_ctime; in sdcardfs_copy_and_fix_attrs() 643 dest->i_blkbits = src->i_blkbits; in sdcardfs_copy_and_fix_attrs() 644 dest->i_flags = src->i_flags; in sdcardfs_copy_and_fix_attrs() [all …]
|
D | inode.c | 540 void copy_attrs(struct inode *dest, const struct inode *src) in copy_attrs() argument 542 dest->i_mode = src->i_mode; in copy_attrs() 543 dest->i_uid = src->i_uid; in copy_attrs() 544 dest->i_gid = src->i_gid; in copy_attrs() 545 dest->i_rdev = src->i_rdev; in copy_attrs() 546 dest->i_atime = src->i_atime; in copy_attrs() 547 dest->i_mtime = src->i_mtime; in copy_attrs() 548 dest->i_ctime = src->i_ctime; in copy_attrs() 549 dest->i_blkbits = src->i_blkbits; in copy_attrs() 550 dest->i_flags = src->i_flags; in copy_attrs() [all …]
|
/fs/unicode/ |
D | utf8-core.c | 105 unsigned char *dest, size_t dlen) in utf8_casefold() argument 117 dest[nlen] = c; in utf8_casefold() 129 unsigned char *dest, size_t dlen) in utf8_normalize() argument 141 dest[nlen] = c; in utf8_normalize()
|
/fs/f2fs/ |
D | recovery.c | 561 block_t src, dest; in do_recover_data() local 564 dest = datablock_addr(dn.inode, page, dn.ofs_in_node); in do_recover_data() 572 if (__is_valid_data_blkaddr(dest) && in do_recover_data() 573 !f2fs_is_valid_blkaddr(sbi, dest, META_POR)) { in do_recover_data() 579 if (src == dest) in do_recover_data() 583 if (dest == NULL_ADDR) { in do_recover_data() 597 if (dest == NEW_ADDR) { in do_recover_data() 604 if (f2fs_is_valid_blkaddr(sbi, dest, META_POR)) { in do_recover_data() 618 err = check_index_in_prev_nodes(sbi, dest, &dn); in do_recover_data() 628 f2fs_replace_block(sbi, &dn, src, dest, in do_recover_data()
|
/fs/ceph/ |
D | xattr.c | 598 char *dest) in __copy_xattr_names() argument 608 memcpy(dest, xattr->name, xattr->name_len); in __copy_xattr_names() 609 dest[xattr->name_len] = '\0'; in __copy_xattr_names() 611 dout("dest=%s %p (%s) (%d/%d)\n", dest, xattr, xattr->name, in __copy_xattr_names() 614 dest += xattr->name_len + 1; in __copy_xattr_names() 618 return dest; in __copy_xattr_names() 767 void *dest; in __ceph_build_xattrs_blob() local 776 dest = ci->i_xattrs.prealloc_blob->vec.iov_base; in __ceph_build_xattrs_blob() 778 ceph_encode_32(&dest, ci->i_xattrs.count); in __ceph_build_xattrs_blob() 782 ceph_encode_32(&dest, xattr->name_len); in __ceph_build_xattrs_blob() [all …]
|
/fs/pstore/ |
D | ram.c | 171 static ssize_t ftrace_log_combine(struct persistent_ram_zone *dest, in ftrace_log_combine() argument 180 dest_off = dest->old_log_size % record_size; in ftrace_log_combine() 181 dest_size = dest->old_log_size - dest_off; in ftrace_log_combine() 191 drec = (struct pstore_ftrace_record *)(dest->old_log + dest_off); in ftrace_log_combine() 216 kfree(dest->old_log); in ftrace_log_combine() 217 dest->old_log = merged_buf; in ftrace_log_combine() 218 dest->old_log_size = total; in ftrace_log_combine()
|
/fs/ocfs2/ |
D | extent_map.c | 159 static void ocfs2_copy_emi_fields(struct ocfs2_extent_map_item *dest, in ocfs2_copy_emi_fields() argument 162 dest->ei_cpos = src->ei_cpos; in ocfs2_copy_emi_fields() 163 dest->ei_phys = src->ei_phys; in ocfs2_copy_emi_fields() 164 dest->ei_clusters = src->ei_clusters; in ocfs2_copy_emi_fields() 165 dest->ei_flags = src->ei_flags; in ocfs2_copy_emi_fields()
|