Home
last modified time | relevance | path

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

123456789

/fs/xfs/libxfs/
Dxfs_sb.c552 struct xfs_dsb *from, in __xfs_sb_from_disk() argument
555 to->sb_magicnum = be32_to_cpu(from->sb_magicnum); in __xfs_sb_from_disk()
556 to->sb_blocksize = be32_to_cpu(from->sb_blocksize); in __xfs_sb_from_disk()
557 to->sb_dblocks = be64_to_cpu(from->sb_dblocks); in __xfs_sb_from_disk()
558 to->sb_rblocks = be64_to_cpu(from->sb_rblocks); in __xfs_sb_from_disk()
559 to->sb_rextents = be64_to_cpu(from->sb_rextents); in __xfs_sb_from_disk()
560 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid)); in __xfs_sb_from_disk()
561 to->sb_logstart = be64_to_cpu(from->sb_logstart); in __xfs_sb_from_disk()
562 to->sb_rootino = be64_to_cpu(from->sb_rootino); in __xfs_sb_from_disk()
563 to->sb_rbmino = be64_to_cpu(from->sb_rbmino); in __xfs_sb_from_disk()
[all …]
Dxfs_inode_buf.c173 struct xfs_dinode *from) in xfs_inode_from_disk() argument
181 fa = xfs_dinode_verify(ip->i_mount, ip->i_ino, from); in xfs_inode_from_disk()
183 xfs_inode_verifier_error(ip, -EFSCORRUPTED, "dinode", from, in xfs_inode_from_disk()
184 sizeof(*from), fa); in xfs_inode_from_disk()
194 ip->i_flushiter = be16_to_cpu(from->di_flushiter); in xfs_inode_from_disk()
195 inode->i_generation = be32_to_cpu(from->di_gen); in xfs_inode_from_disk()
196 inode->i_mode = be16_to_cpu(from->di_mode); in xfs_inode_from_disk()
205 if (unlikely(from->di_version == 1)) { in xfs_inode_from_disk()
206 set_nlink(inode, be16_to_cpu(from->di_onlink)); in xfs_inode_from_disk()
209 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.c97 struct xfs_attr_leafblock *from) in xfs_attr3_leaf_firstused_from_disk() argument
101 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_firstused_from_disk()
102 hdr3 = (struct xfs_attr3_leaf_hdr *) from; in xfs_attr3_leaf_firstused_from_disk()
105 to->firstused = be16_to_cpu(from->hdr.firstused); in xfs_attr3_leaf_firstused_from_disk()
124 struct xfs_attr3_icleaf_hdr *from) in xfs_attr3_leaf_firstused_to_disk() argument
130 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF); in xfs_attr3_leaf_firstused_to_disk()
137 firstused = from->firstused; in xfs_attr3_leaf_firstused_to_disk()
139 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
143 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_firstused_to_disk()
155 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()
154 struct xfs_log_dinode *from, in xfs_log_dinode_to_disk_iext_counters() argument
157 if (xfs_log_dinode_has_large_extent_counts(from)) { in xfs_log_dinode_to_disk_iext_counters()
158 to->di_big_nextents = cpu_to_be64(from->di_big_nextents); in xfs_log_dinode_to_disk_iext_counters()
159 to->di_big_anextents = cpu_to_be32(from->di_big_anextents); in xfs_log_dinode_to_disk_iext_counters()
160 to->di_nrext64_pad = cpu_to_be16(from->di_nrext64_pad); in xfs_log_dinode_to_disk_iext_counters()
162 to->di_nextents = cpu_to_be32(from->di_nextents); in xfs_log_dinode_to_disk_iext_counters()
163 to->di_anextents = cpu_to_be16(from->di_anextents); in xfs_log_dinode_to_disk_iext_counters()
170 struct xfs_log_dinode *from, in xfs_log_dinode_to_disk() argument
[all …]
Dxfs_file.c319 struct iov_iter *from, in xfs_file_write_checks() argument
326 size_t count = iov_iter_count(from); in xfs_file_write_checks()
331 error = generic_write_checks(iocb, from); in xfs_file_write_checks()
397 iov_iter_reexpand(from, count); in xfs_file_write_checks()
521 struct iov_iter *from) in xfs_file_dio_write_aligned() argument
529 ret = xfs_file_write_checks(iocb, from, &iolock); in xfs_file_dio_write_aligned()
542 trace_xfs_file_direct_write(iocb, from); in xfs_file_dio_write_aligned()
543 ret = iomap_dio_rw(iocb, from, &xfs_direct_write_iomap_ops, in xfs_file_dio_write_aligned()
572 struct iov_iter *from) in xfs_file_dio_write_unaligned() argument
575 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.c27 dev_t from, int num) in show_tty_range() argument
32 seq_printf(m, "%3d %d-%d ", MAJOR(from), MINOR(from), in show_tty_range()
33 MINOR(from) + num - 1); in show_tty_range()
35 seq_printf(m, "%3d %7d ", MAJOR(from), MINOR(from)); in show_tty_range()
70 dev_t from = MKDEV(p->major, p->minor_start); in show_tty_driver() local
71 dev_t to = from + p->num; in show_tty_driver()
93 while (MAJOR(from) < MAJOR(to)) { in show_tty_driver()
94 dev_t next = MKDEV(MAJOR(from)+1, 0); in show_tty_driver()
95 show_tty_range(m, p, from, next - from); in show_tty_driver()
96 from = next; in show_tty_driver()
[all …]
/fs/smb/client/
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.c185 ext4_unaligned_io(struct inode *inode, struct iov_iter *from, loff_t pos) in ext4_unaligned_io() argument
190 if ((pos | iov_iter_alignment(from)) & blockmask) in ext4_unaligned_io()
229 struct iov_iter *from) in ext4_generic_write_checks() argument
237 ret = generic_write_checks(iocb, from); in ext4_generic_write_checks()
250 iov_iter_truncate(from, sbi->s_bitmap_maxbytes - iocb->ki_pos); in ext4_generic_write_checks()
253 return iov_iter_count(from); in ext4_generic_write_checks()
256 static ssize_t ext4_write_checks(struct kiocb *iocb, struct iov_iter *from) in ext4_write_checks() argument
260 count = ext4_generic_write_checks(iocb, from); in ext4_write_checks()
271 struct iov_iter *from) in ext4_buffered_write_iter() argument
280 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()
169 mext_page_mkuptodate(struct page *page, unsigned from, unsigned to) in mext_page_mkuptodate() argument
191 if (block_end <= from || block_start >= to) { in mext_page_mkuptodate()
263 int from = data_offset_in_page << orig_inode->i_blkbits; in move_extent_per_page() local
356 *err = mext_page_mkuptodate(&folio[0]->page, from, from + replaced_size); in move_extent_per_page()
394 *err = block_commit_write(&folio[0]->page, from, from + replaced_size); in move_extent_per_page()
/fs/smb/server/
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/zonefs/
Dfile.c384 static ssize_t zonefs_file_dio_append(struct kiocb *iocb, struct iov_iter *from) in zonefs_file_dio_append() argument
397 iov_iter_truncate(from, max); in zonefs_file_dio_append()
408 end = (iocb->ki_pos + iov_iter_count(from) - 1) >> PAGE_SHIFT; in zonefs_file_dio_append()
412 nr_pages = iov_iter_npages(from, BIO_MAX_VECS); in zonefs_file_dio_append()
423 ret = bio_iov_iter_get_pages(bio, from); in zonefs_file_dio_append()
497 static ssize_t zonefs_write_checks(struct kiocb *iocb, struct iov_iter *from) in zonefs_write_checks() argument
508 if (!iov_iter_count(from)) in zonefs_write_checks()
523 iov_iter_count(from)); in zonefs_write_checks()
527 iov_iter_truncate(from, count); in zonefs_write_checks()
528 return iov_iter_count(from); in zonefs_write_checks()
[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/gfs2/
Dfile.c868 static ssize_t gfs2_file_direct_write(struct kiocb *iocb, struct iov_iter *from, in gfs2_file_direct_write() argument
903 if (iocb->ki_pos + iov_iter_count(from) > i_size_read(&ip->i_inode)) in gfs2_file_direct_write()
906 from->nofault = true; in gfs2_file_direct_write()
907 ret = iomap_dio_rw(iocb, from, &gfs2_iomap_ops, NULL, in gfs2_file_direct_write()
909 from->nofault = false; in gfs2_file_direct_write()
920 enough_retries = prev_count == iov_iter_count(from) && in gfs2_file_direct_write()
922 if (should_fault_in_pages(from, iocb, &prev_count, &window_size)) { in gfs2_file_direct_write()
924 window_size -= fault_in_iov_iter_readable(from, window_size); in gfs2_file_direct_write()
1005 struct iov_iter *from, in gfs2_file_buffered_write() argument
1014 size_t orig_count = iov_iter_count(from); in gfs2_file_buffered_write()
[all …]
/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/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/nls/
DKconfig284 from the Microsoft FAT file system family or from JOLIET CD-ROMs
293 from the Microsoft FAT file system family or from JOLIET CDROMs
323 from the Microsoft FAT file system family or from JOLIET CD-ROMs
335 from the Microsoft FAT file system family or from JOLIET CD-ROMs
346 from the Microsoft FAT file system family or from JOLIET CD-ROMs
356 from the Microsoft FAT file system family or from JOLIET CD-ROMs
366 from the Microsoft FAT file system family or from JOLIET CD-ROMs
377 from the Microsoft FAT file system family or from JOLIET CD-ROMs
386 from the Microsoft FAT file system family or from JOLIET CD-ROMs
395 from the Microsoft FAT file system family or from JOLIET CD-ROMs
[all …]

123456789