Home
last modified time | relevance | path

Searched refs:from (Results 1 – 25 of 202) sorted by relevance

123456789

/fs/xfs/libxfs/
Dxfs_sb.c549 xfs_dsb_t *from, in __xfs_sb_from_disk() argument
552 to->sb_magicnum = be32_to_cpu(from->sb_magicnum); in __xfs_sb_from_disk()
553 to->sb_blocksize = be32_to_cpu(from->sb_blocksize); in __xfs_sb_from_disk()
554 to->sb_dblocks = be64_to_cpu(from->sb_dblocks); in __xfs_sb_from_disk()
555 to->sb_rblocks = be64_to_cpu(from->sb_rblocks); in __xfs_sb_from_disk()
556 to->sb_rextents = be64_to_cpu(from->sb_rextents); in __xfs_sb_from_disk()
557 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid)); in __xfs_sb_from_disk()
558 to->sb_logstart = be64_to_cpu(from->sb_logstart); in __xfs_sb_from_disk()
559 to->sb_rootino = be64_to_cpu(from->sb_rootino); in __xfs_sb_from_disk()
560 to->sb_rbmino = be64_to_cpu(from->sb_rbmino); in __xfs_sb_from_disk()
[all …]
Dxfs_inode_buf.c174 struct xfs_dinode *from) in xfs_inode_from_disk() argument
183 fa = xfs_dinode_verify(ip->i_mount, ip->i_ino, from); in xfs_inode_from_disk()
185 xfs_inode_verifier_error(ip, -EFSCORRUPTED, "dinode", from, in xfs_inode_from_disk()
186 sizeof(*from), fa); in xfs_inode_from_disk()
196 ip->i_flushiter = be16_to_cpu(from->di_flushiter); in xfs_inode_from_disk()
197 inode->i_generation = be32_to_cpu(from->di_gen); in xfs_inode_from_disk()
198 inode->i_mode = be16_to_cpu(from->di_mode); in xfs_inode_from_disk()
207 if (unlikely(from->di_version == 1)) { in xfs_inode_from_disk()
208 set_nlink(inode, be16_to_cpu(from->di_onlink)); in xfs_inode_from_disk()
211 set_nlink(inode, be32_to_cpu(from->di_nlink)); in xfs_inode_from_disk()
[all …]
Dxfs_dir2_leaf.c38 struct xfs_dir2_leaf *from) in xfs_dir2_leaf_hdr_from_disk() argument
41 struct xfs_dir3_leaf *from3 = (struct xfs_dir3_leaf *)from; in xfs_dir2_leaf_hdr_from_disk()
53 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_dir2_leaf_hdr_from_disk()
54 to->back = be32_to_cpu(from->hdr.info.back); in xfs_dir2_leaf_hdr_from_disk()
55 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
56 to->count = be16_to_cpu(from->hdr.count); in xfs_dir2_leaf_hdr_from_disk()
57 to->stale = be16_to_cpu(from->hdr.stale); in xfs_dir2_leaf_hdr_from_disk()
58 to->ents = from->__ents; in xfs_dir2_leaf_hdr_from_disk()
69 struct xfs_dir3_icleaf_hdr *from) in xfs_dir2_leaf_hdr_to_disk() argument
74 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
[all …]
Dxfs_attr_leaf.c96 struct xfs_attr_leafblock *from) in xfs_attr3_leaf_firstused_from_disk() argument
100 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_firstused_from_disk()
101 hdr3 = (struct xfs_attr3_leaf_hdr *) from; in xfs_attr3_leaf_firstused_from_disk()
104 to->firstused = be16_to_cpu(from->hdr.firstused); in xfs_attr3_leaf_firstused_from_disk()
123 struct xfs_attr3_icleaf_hdr *from) in xfs_attr3_leaf_firstused_to_disk() argument
129 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF); in xfs_attr3_leaf_firstused_to_disk()
136 firstused = from->firstused; in xfs_attr3_leaf_firstused_to_disk()
138 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
142 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_firstused_to_disk()
154 struct xfs_attr_leafblock *from) in xfs_attr3_leaf_hdr_from_disk() argument
[all …]
/fs/xfs/
Dxfs_inode_item_recover.c127 struct xfs_log_dinode *from, in xfs_log_dinode_to_disk_ts() argument
134 if (xfs_log_dinode_has_bigtime(from)) in xfs_log_dinode_to_disk_ts()
147 struct xfs_log_dinode *from, in xfs_log_dinode_to_disk() argument
151 to->di_magic = cpu_to_be16(from->di_magic); in xfs_log_dinode_to_disk()
152 to->di_mode = cpu_to_be16(from->di_mode); in xfs_log_dinode_to_disk()
153 to->di_version = from->di_version; in xfs_log_dinode_to_disk()
154 to->di_format = from->di_format; in xfs_log_dinode_to_disk()
156 to->di_uid = cpu_to_be32(from->di_uid); in xfs_log_dinode_to_disk()
157 to->di_gid = cpu_to_be32(from->di_gid); in xfs_log_dinode_to_disk()
158 to->di_nlink = cpu_to_be32(from->di_nlink); in xfs_log_dinode_to_disk()
[all …]
Dxfs_file.c344 struct iov_iter *from, in xfs_file_write_checks() argument
351 size_t count = iov_iter_count(from); in xfs_file_write_checks()
356 error = generic_write_checks(iocb, from); in xfs_file_write_checks()
422 iov_iter_reexpand(from, count); in xfs_file_write_checks()
547 struct iov_iter *from) in xfs_file_dio_write_aligned() argument
555 ret = xfs_file_write_checks(iocb, from, &iolock); in xfs_file_dio_write_aligned()
568 trace_xfs_file_direct_write(iocb, from); in xfs_file_dio_write_aligned()
569 ret = iomap_dio_rw(iocb, from, &xfs_direct_write_iomap_ops, in xfs_file_dio_write_aligned()
598 struct iov_iter *from) in xfs_file_dio_write_unaligned() argument
601 size_t count = iov_iter_count(from); in xfs_file_dio_write_unaligned()
[all …]
/fs/jfs/
Djfs_unicode.c19 int jfs_strfromUCS_le(char *to, const __le16 * from, in jfs_strfromUCS_le() argument
28 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
31 codepage->uni2char(le16_to_cpu(from[i]), in jfs_strfromUCS_le()
40 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
41 if (unlikely(le16_to_cpu(from[i]) & 0xff00)) { in jfs_strfromUCS_le()
48 le16_to_cpu(from[i])); in jfs_strfromUCS_le()
55 to[i] = (char) (le16_to_cpu(from[i])); in jfs_strfromUCS_le()
69 static int jfs_strtoUCS(wchar_t * to, const unsigned char *from, int len, in jfs_strtoUCS() argument
76 for (i = 0; len && *from; i++, from += charlen, len -= charlen) in jfs_strtoUCS()
78 charlen = codepage->char2uni(from, len, &to[i]); in jfs_strtoUCS()
[all …]
/fs/proc/
Dproc_tty.c29 dev_t from, int num) in show_tty_range() argument
34 seq_printf(m, "%3d %d-%d ", MAJOR(from), MINOR(from), in show_tty_range()
35 MINOR(from) + num - 1); in show_tty_range()
37 seq_printf(m, "%3d %7d ", MAJOR(from), MINOR(from)); in show_tty_range()
72 dev_t from = MKDEV(p->major, p->minor_start); in show_tty_driver() local
73 dev_t to = from + p->num; in show_tty_driver()
95 while (MAJOR(from) < MAJOR(to)) { in show_tty_driver()
96 dev_t next = MKDEV(MAJOR(from)+1, 0); in show_tty_driver()
97 show_tty_range(m, p, from, next - from); in show_tty_driver()
98 from = next; in show_tty_driver()
[all …]
/fs/cifs/
Dcifs_unicode.c119 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument
125 src_char = *from; in cifs_mapchar()
144 len = utf16s_to_utf8s(from, 3, UTF16_LITTLE_ENDIAN, target, 6); in cifs_mapchar()
178 cifs_from_utf16(char *to, const __le16 *from, int tolen, int fromlen, in cifs_from_utf16() argument
197 ftmp[0] = get_unaligned_le16(&from[i]); in cifs_from_utf16()
201 ftmp[1] = get_unaligned_le16(&from[i + 1]); in cifs_from_utf16()
205 ftmp[2] = get_unaligned_le16(&from[i + 2]); in cifs_from_utf16()
249 cifs_strtoUTF16(__le16 *to, const char *from, int len, in cifs_strtoUTF16() argument
263 i = utf8s_to_utf16s(from, len, UTF16_LITTLE_ENDIAN, in cifs_strtoUTF16()
277 for (i = 0; len && *from; i++, from += charlen, len -= charlen) { in cifs_strtoUTF16()
[all …]
/fs/sysv/
Dinode.c109 unsigned char * from, unsigned char * to) in read3byte() argument
112 to[0] = from[0]; in read3byte()
114 to[2] = from[1]; in read3byte()
115 to[3] = from[2]; in read3byte()
117 to[0] = from[0]; in read3byte()
118 to[1] = from[1]; in read3byte()
119 to[2] = from[2]; in read3byte()
123 to[1] = from[0]; in read3byte()
124 to[2] = from[1]; in read3byte()
125 to[3] = from[2]; in read3byte()
[all …]
DKconfig8 here would allow you to read from their floppies and hard disk
12 that they contain binaries from those other Unix systems; in order
16 available via FTP (user: ftp) from
18 NOTE: that will work only for binaries from Intel-based systems;
21 If you only intend to mount files from some other Unix over the
/fs/ext4/
Dfile.c175 ext4_unaligned_io(struct inode *inode, struct iov_iter *from, loff_t pos) in ext4_unaligned_io() argument
180 if ((pos | iov_iter_alignment(from)) & blockmask) in ext4_unaligned_io()
219 struct iov_iter *from) in ext4_generic_write_checks() argument
227 ret = generic_write_checks(iocb, from); in ext4_generic_write_checks()
240 iov_iter_truncate(from, sbi->s_bitmap_maxbytes - iocb->ki_pos); in ext4_generic_write_checks()
243 return iov_iter_count(from); in ext4_generic_write_checks()
246 static ssize_t ext4_write_checks(struct kiocb *iocb, struct iov_iter *from) in ext4_write_checks() argument
250 count = ext4_generic_write_checks(iocb, from); in ext4_write_checks()
261 struct iov_iter *from) in ext4_buffered_write_iter() argument
270 ret = ext4_write_checks(iocb, from); in ext4_buffered_write_iter()
[all …]
Dmove_extent.c90 mext_check_coverage(struct inode *inode, ext4_lblk_t from, ext4_lblk_t count, in mext_check_coverage() argument
96 ext4_lblk_t last = from + count; in mext_check_coverage()
97 while (from < last) { in mext_check_coverage()
98 *err = get_ext_path(inode, from, &path); in mext_check_coverage()
104 from += ext4_ext_get_actual_len(ext); in mext_check_coverage()
167 mext_page_mkuptodate(struct page *page, unsigned from, unsigned to) in mext_page_mkuptodate() argument
189 if (block_end <= from || block_start >= to) { in mext_page_mkuptodate()
260 int from = data_offset_in_page << orig_inode->i_blkbits; in move_extent_per_page() local
348 *err = mext_page_mkuptodate(pagep[0], from, from + replaced_size); in move_extent_per_page()
386 *err = block_commit_write(pagep[0], from, from + replaced_size); in move_extent_per_page()
/fs/ksmbd/
Dunicode.c31 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument
37 src_char = *from; in cifs_mapchar()
84 len = utf16s_to_utf8s(from, 3, UTF16_LITTLE_ENDIAN, target, 6); in cifs_mapchar()
107 static int smb_utf16_bytes(const __le16 *from, int maxbytes, in smb_utf16_bytes() argument
117 ftmp[0] = get_unaligned_le16(&from[i]); in smb_utf16_bytes()
122 ftmp[j] = get_unaligned_le16(&from[i + j]); in smb_utf16_bytes()
161 static int smb_from_utf16(char *to, const __le16 *from, int tolen, int fromlen, in smb_from_utf16() argument
180 ftmp[0] = get_unaligned_le16(&from[i]); in smb_from_utf16()
185 ftmp[j] = get_unaligned_le16(&from[i + j]); in smb_from_utf16()
234 int smb_strtoUTF16(__le16 *to, const char *from, int len, in smb_strtoUTF16() argument
[all …]
/fs/nilfs2/
Ddir.c87 static int nilfs_prepare_chunk(struct page *page, unsigned int from, in nilfs_prepare_chunk() argument
90 loff_t pos = page_offset(page) + from; in nilfs_prepare_chunk()
92 return __block_write_begin(page, pos, to - from, nilfs_get_block); in nilfs_prepare_chunk()
97 unsigned int from, unsigned int to) in nilfs_commit_chunk() argument
100 loff_t pos = page_offset(page) + from; in nilfs_commit_chunk()
101 unsigned int len = to - from; in nilfs_commit_chunk()
105 nr_dirty = nilfs_page_count_clean_buffers(page, from, to); in nilfs_commit_chunk()
420 unsigned int from = (char *)de - (char *)page_address(page); in nilfs_set_link() local
421 unsigned int to = from + nilfs_rec_len_from_disk(de->rec_len); in nilfs_set_link()
426 err = nilfs_prepare_chunk(page, from, to); in nilfs_set_link()
[all …]
/fs/ubifs/
Dkey.h417 static inline void key_read(const struct ubifs_info *c, const void *from, in key_read() argument
420 const union ubifs_key *f = from; in key_read()
433 const union ubifs_key *from, void *to) in key_write() argument
437 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write()
438 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write()
449 const union ubifs_key *from, void *to) in key_write_idx() argument
453 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write_idx()
454 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write_idx()
464 const union ubifs_key *from, union ubifs_key *to) in key_copy() argument
466 to->u64[0] = from->u64[0]; in key_copy()
/fs/hpfs/
Dname.c54 unsigned char *hpfs_translate_name(struct super_block *s, unsigned char *from, in hpfs_translate_name() argument
59 if (hpfs_sb(s)->sb_chk >= 2) if (hpfs_is_name_long(from, len) != lng) { in hpfs_translate_name()
62 pr_cont("%c", from[i]); in hpfs_translate_name()
66 if (!lc) return from; in hpfs_translate_name()
69 return from; in hpfs_translate_name()
71 for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]); in hpfs_translate_name()
/fs/ext2/
Dfile.c49 static ssize_t ext2_dax_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_dax_write_iter() argument
56 ret = generic_write_checks(iocb, from); in ext2_dax_write_iter()
66 ret = dax_iomap_rw(iocb, from, &ext2_iomap_ops); in ext2_dax_write_iter()
173 static ssize_t ext2_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_file_write_iter() argument
177 return ext2_dax_write_iter(iocb, from); in ext2_file_write_iter()
179 return generic_file_write_iter(iocb, from); in ext2_file_write_iter()
/fs/hostfs/
Dhostfs_user.c277 int make_symlink(const char *from, const char *to) in make_symlink() argument
281 err = symlink(to, from); in make_symlink()
327 int link_file(const char *to, const char *from) in link_file() argument
331 err = link(to, from); in link_file()
349 int rename_file(char *from, char *to) in rename_file() argument
353 err = rename(from, to); in rename_file()
359 int rename2_file(char *from, char *to, unsigned int flags) in rename2_file() argument
373 err = syscall(SYS_renameat2, AT_FDCWD, from, AT_FDCWD, to, flags); in rename2_file()
Dhostfs.h88 extern int make_symlink(const char *from, const char *to);
94 extern int link_file(const char *to, const char *from);
96 extern int rename_file(char *from, char *to);
97 extern int rename2_file(char *from, char *to, unsigned int flags);
/fs/gfs2/
Dfile.c875 static ssize_t gfs2_file_direct_write(struct kiocb *iocb, struct iov_iter *from, in gfs2_file_direct_write() argument
910 if (iocb->ki_pos + iov_iter_count(from) > i_size_read(&ip->i_inode)) in gfs2_file_direct_write()
913 from->nofault = true; in gfs2_file_direct_write()
914 ret = iomap_dio_rw(iocb, from, &gfs2_iomap_ops, NULL, in gfs2_file_direct_write()
916 from->nofault = false; in gfs2_file_direct_write()
923 if (should_fault_in_pages(ret, from, &prev_count, &window_size)) { in gfs2_file_direct_write()
927 leftover = fault_in_iov_iter_readable(from, window_size); in gfs2_file_direct_write()
1014 struct iov_iter *from, in gfs2_file_buffered_write() argument
1023 size_t orig_count = iov_iter_count(from); in gfs2_file_buffered_write()
1057 ret = iomap_file_buffered_write(iocb, from, &gfs2_iomap_ops); in gfs2_file_buffered_write()
[all …]
/fs/reiserfs/
Dprints.c447 int from, to; in print_internal() local
455 from = 0; in print_internal()
458 from = first; in print_internal()
464 dc = B_N_CHILD(bh, from); in print_internal()
465 reiserfs_printk("PTR %d: %y ", from, dc); in print_internal()
467 for (i = from, key = internal_key(bh, from), dc++; i < to; in print_internal()
483 int from, to; in print_leaf() local
505 from = 0; in print_leaf()
507 from = first; in print_leaf()
514 ih += from; in print_leaf()
[all …]
Dlbalance.c17 int item_num, int from, int copy_count) in leaf_copy_dir_entries() argument
41 copy_records_len = (from ? deh_location(&deh[from - 1]) : in leaf_copy_dir_entries()
43 deh_location(&deh[from + copy_count - 1]); in leaf_copy_dir_entries()
46 deh_location(&deh[from + copy_count - 1]); in leaf_copy_dir_entries()
82 if (from < ih_entry_count(ih)) { in leaf_copy_dir_entries()
84 deh_offset(&deh[from])); in leaf_copy_dir_entries()
123 : 0, copy_count, deh + from, records, in leaf_copy_dir_entries()
1073 struct item_head *ih, int from, int del_count) in leaf_cut_entries() argument
1087 RFALSE(ih_entry_count(ih) < from + del_count, in leaf_cut_entries()
1089 ih_entry_count(ih), from, del_count); in leaf_cut_entries()
[all …]
/fs/
Dbuffer.c1933 void page_zero_new_buffers(struct page *page, unsigned from, unsigned to) in page_zero_new_buffers() argument
1948 if (block_end > from && block_start < to) { in page_zero_new_buffers()
1952 start = max(from, block_start); in page_zero_new_buffers()
2028 unsigned from = pos & (PAGE_SIZE - 1); in __block_write_begin_int() local
2029 unsigned to = from + len; in __block_write_begin_int()
2038 BUG_ON(from > PAGE_SIZE); in __block_write_begin_int()
2040 BUG_ON(from > to); in __block_write_begin_int()
2051 if (block_end <= from || block_start >= to) { in __block_write_begin_int()
2078 if (block_end > to || block_start < from) in __block_write_begin_int()
2081 block_start, from); in __block_write_begin_int()
[all …]
/fs/ntfs3/
Dfile.c291 u32 from = vbo_clst & (PAGE_SIZE - 1); in ntfs_sparse_cluster() local
298 for (; idx < idx_end; idx += 1, from = 0) { in ntfs_sparse_cluster()
309 if ((from || PAGE_SIZE != to) && in ntfs_sparse_cluster()
322 if (from <= bh_off && bh_next <= to) { in ntfs_sparse_cluster()
332 zero_user_segment(page, from, to); in ntfs_sparse_cluster()
357 u64 from = ((u64)vma->vm_pgoff << PAGE_SHIFT); in ntfs_file_mmap() local
378 from + vma->vm_end - vma->vm_start); in ntfs_file_mmap()
384 CLST vcn = from >> sbi->cluster_bits; in ntfs_file_mmap()
875 static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from) in ntfs_compress_write() argument
879 size_t count = iov_iter_count(from); in ntfs_compress_write()
[all …]

123456789