Home
last modified time | relevance | path

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

12345678

/fs/xfs/libxfs/
Dxfs_inode_buf.c203 struct xfs_dinode *from) in xfs_inode_from_disk() argument
213 to->di_version = from->di_version; in xfs_inode_from_disk()
215 set_nlink(inode, be16_to_cpu(from->di_onlink)); in xfs_inode_from_disk()
220 set_nlink(inode, be32_to_cpu(from->di_nlink)); in xfs_inode_from_disk()
221 to->di_projid_lo = be16_to_cpu(from->di_projid_lo); in xfs_inode_from_disk()
222 to->di_projid_hi = be16_to_cpu(from->di_projid_hi); in xfs_inode_from_disk()
225 to->di_format = from->di_format; in xfs_inode_from_disk()
226 to->di_uid = be32_to_cpu(from->di_uid); in xfs_inode_from_disk()
227 to->di_gid = be32_to_cpu(from->di_gid); in xfs_inode_from_disk()
228 to->di_flushiter = be16_to_cpu(from->di_flushiter); in xfs_inode_from_disk()
[all …]
Dxfs_sb.c452 xfs_dsb_t *from, in __xfs_sb_from_disk() argument
455 to->sb_magicnum = be32_to_cpu(from->sb_magicnum); in __xfs_sb_from_disk()
456 to->sb_blocksize = be32_to_cpu(from->sb_blocksize); in __xfs_sb_from_disk()
457 to->sb_dblocks = be64_to_cpu(from->sb_dblocks); in __xfs_sb_from_disk()
458 to->sb_rblocks = be64_to_cpu(from->sb_rblocks); in __xfs_sb_from_disk()
459 to->sb_rextents = be64_to_cpu(from->sb_rextents); in __xfs_sb_from_disk()
460 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid)); in __xfs_sb_from_disk()
461 to->sb_logstart = be64_to_cpu(from->sb_logstart); in __xfs_sb_from_disk()
462 to->sb_rootino = be64_to_cpu(from->sb_rootino); in __xfs_sb_from_disk()
463 to->sb_rbmino = be64_to_cpu(from->sb_rbmino); in __xfs_sb_from_disk()
[all …]
Dxfs_da_format.c112 uint8_t *from) in xfs_dir2_sf_get_ino() argument
115 return get_unaligned_be64(from) & 0x00ffffffffffffffULL; in xfs_dir2_sf_get_ino()
117 return get_unaligned_be32(from); in xfs_dir2_sf_get_ino()
435 struct xfs_dir2_leaf *from) in xfs_dir2_leaf_hdr_from_disk() argument
437 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_dir2_leaf_hdr_from_disk()
438 to->back = be32_to_cpu(from->hdr.info.back); in xfs_dir2_leaf_hdr_from_disk()
439 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
440 to->count = be16_to_cpu(from->hdr.count); in xfs_dir2_leaf_hdr_from_disk()
441 to->stale = be16_to_cpu(from->hdr.stale); in xfs_dir2_leaf_hdr_from_disk()
450 struct xfs_dir3_icleaf_hdr *from) in xfs_dir2_leaf_hdr_to_disk() argument
[all …]
Dxfs_attr_leaf.c95 struct xfs_attr_leafblock *from) in xfs_attr3_leaf_firstused_from_disk() argument
99 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_firstused_from_disk()
100 hdr3 = (struct xfs_attr3_leaf_hdr *) from; in xfs_attr3_leaf_firstused_from_disk()
103 to->firstused = be16_to_cpu(from->hdr.firstused); in xfs_attr3_leaf_firstused_from_disk()
122 struct xfs_attr3_icleaf_hdr *from) in xfs_attr3_leaf_firstused_to_disk() argument
128 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF); in xfs_attr3_leaf_firstused_to_disk()
135 firstused = from->firstused; in xfs_attr3_leaf_firstused_to_disk()
137 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
141 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_firstused_to_disk()
153 struct xfs_attr_leafblock *from) in xfs_attr3_leaf_hdr_from_disk() argument
[all …]
Dxfs_dir2_leaf.c873 int from; /* source leaf index */ in xfs_dir3_leaf_compact() local
888 for (from = to = 0, loglow = -1; from < leafhdr->count; from++) { in xfs_dir3_leaf_compact()
889 if (ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_compact()
894 if (from > to) { in xfs_dir3_leaf_compact()
897 ents[to] = ents[from]; in xfs_dir3_leaf_compact()
904 ASSERT(leafhdr->stale == from - to); in xfs_dir3_leaf_compact()
932 int from; /* source copy index */ in xfs_dir3_leaf_compact_x1() local
958 for (from = to = 0; from < leafhdr->count; from++) { in xfs_dir3_leaf_compact_x1()
962 if (index == from) in xfs_dir3_leaf_compact_x1()
964 if (from != keepstale && in xfs_dir3_leaf_compact_x1()
[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.c120 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument
126 src_char = *from; in cifs_mapchar()
145 len = utf16s_to_utf8s(from, 3, UTF16_LITTLE_ENDIAN, target, 6); in cifs_mapchar()
179 cifs_from_utf16(char *to, const __le16 *from, int tolen, int fromlen, in cifs_from_utf16() argument
198 ftmp[0] = get_unaligned_le16(&from[i]); in cifs_from_utf16()
202 ftmp[1] = get_unaligned_le16(&from[i + 1]); in cifs_from_utf16()
206 ftmp[2] = get_unaligned_le16(&from[i + 2]); in cifs_from_utf16()
250 cifs_strtoUTF16(__le16 *to, const char *from, int len, in cifs_strtoUTF16() argument
264 i = utf8s_to_utf16s(from, len, UTF16_LITTLE_ENDIAN, in cifs_strtoUTF16()
278 for (i = 0; len && *from; i++, from += charlen, len -= charlen) { in cifs_strtoUTF16()
[all …]
/fs/sysv/
Dinode.c110 unsigned char * from, unsigned char * to) in read3byte() argument
113 to[0] = from[0]; in read3byte()
115 to[2] = from[1]; in read3byte()
116 to[3] = from[2]; in read3byte()
118 to[0] = from[0]; in read3byte()
119 to[1] = from[1]; in read3byte()
120 to[2] = from[2]; in read3byte()
124 to[1] = from[0]; in read3byte()
125 to[2] = from[1]; in read3byte()
126 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/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/xfs/
Dxfs_inode_item.c303 struct xfs_icdinode *from = &ip->i_d; in xfs_inode_to_log_dinode() local
308 to->di_version = from->di_version; in xfs_inode_to_log_dinode()
309 to->di_format = from->di_format; in xfs_inode_to_log_dinode()
310 to->di_uid = from->di_uid; in xfs_inode_to_log_dinode()
311 to->di_gid = from->di_gid; in xfs_inode_to_log_dinode()
312 to->di_projid_lo = from->di_projid_lo; in xfs_inode_to_log_dinode()
313 to->di_projid_hi = from->di_projid_hi; in xfs_inode_to_log_dinode()
327 to->di_size = from->di_size; in xfs_inode_to_log_dinode()
328 to->di_nblocks = from->di_nblocks; in xfs_inode_to_log_dinode()
329 to->di_extsize = from->di_extsize; in xfs_inode_to_log_dinode()
[all …]
Dxfs_file.c283 struct iov_iter *from, in xfs_file_aio_write_checks() argument
290 size_t count = iov_iter_count(from); in xfs_file_aio_write_checks()
295 error = generic_write_checks(iocb, from); in xfs_file_aio_write_checks()
337 iov_iter_reexpand(from, count); in xfs_file_aio_write_checks()
478 struct iov_iter *from) in xfs_file_dio_aio_write() argument
488 size_t count = iov_iter_count(from); in xfs_file_dio_aio_write()
530 ret = xfs_file_aio_write_checks(iocb, from, &iolock); in xfs_file_dio_aio_write()
533 count = iov_iter_count(from); in xfs_file_dio_aio_write()
550 ret = iomap_dio_rw(iocb, from, &xfs_iomap_ops, &xfs_dio_write_ops); in xfs_file_dio_aio_write()
573 struct iov_iter *from) in xfs_file_dax_write() argument
[all …]
/fs/ext4/
Dfile.c123 ext4_unaligned_aio(struct inode *inode, struct iov_iter *from, loff_t pos) in ext4_unaligned_aio() argument
131 if ((pos | iov_iter_alignment(from)) & blockmask) in ext4_unaligned_aio()
160 static ssize_t ext4_write_checks(struct kiocb *iocb, struct iov_iter *from) in ext4_write_checks() argument
165 ret = generic_write_checks(iocb, from); in ext4_write_checks()
181 iov_iter_truncate(from, sbi->s_bitmap_maxbytes - iocb->ki_pos); in ext4_write_checks()
183 return iov_iter_count(from); in ext4_write_checks()
188 ext4_dax_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_dax_write_iter() argument
198 ret = ext4_write_checks(iocb, from); in ext4_dax_write_iter()
208 ret = dax_iomap_rw(iocb, from, &ext4_iomap_ops); in ext4_dax_write_iter()
218 ext4_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_file_write_iter() argument
[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/ubifs/
Dkey.h418 static inline void key_read(const struct ubifs_info *c, const void *from, in key_read() argument
421 const union ubifs_key *f = from; in key_read()
434 const union ubifs_key *from, void *to) in key_write() argument
438 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write()
439 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write()
450 const union ubifs_key *from, void *to) in key_write_idx() argument
454 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write_idx()
455 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write_idx()
465 const union ubifs_key *from, union ubifs_key *to) in key_copy() argument
467 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()
172 static ssize_t ext2_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_file_write_iter() argument
176 return ext2_dax_write_iter(iocb, from); in ext2_file_write_iter()
178 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.h84 extern int make_symlink(const char *from, const char *to);
90 extern int link_file(const char *to, const char *from);
92 extern int rename_file(char *from, char *to);
93 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/
Dbuffer.c1839 void page_zero_new_buffers(struct page *page, unsigned from, unsigned to) in page_zero_new_buffers() argument
1854 if (block_end > from && block_start < to) { in page_zero_new_buffers()
1858 start = max(from, block_start); in page_zero_new_buffers()
1934 unsigned from = pos & (PAGE_SIZE - 1); in __block_write_begin_int() local
1935 unsigned to = from + len; in __block_write_begin_int()
1944 BUG_ON(from > PAGE_SIZE); in __block_write_begin_int()
1946 BUG_ON(from > to); in __block_write_begin_int()
1957 if (block_end <= from || block_start >= to) { in __block_write_begin_int()
1984 if (block_end > to || block_start < from) in __block_write_begin_int()
1987 block_start, from); in __block_write_begin_int()
[all …]
/fs/overlayfs/
Doverlayfs.h390 static inline void ovl_copyattr(struct inode *from, struct inode *to) in ovl_copyattr() argument
392 to->i_uid = from->i_uid; in ovl_copyattr()
393 to->i_gid = from->i_gid; in ovl_copyattr()
394 to->i_mode = from->i_mode; in ovl_copyattr()
395 to->i_atime = from->i_atime; in ovl_copyattr()
396 to->i_mtime = from->i_mtime; in ovl_copyattr()
397 to->i_ctime = from->i_ctime; in ovl_copyattr()
398 i_size_write(to, i_size_read(from)); in ovl_copyattr()
401 static inline void ovl_copyflags(struct inode *from, struct inode *to) in ovl_copyflags() argument
405 inode_set_flags(to, from->i_flags & mask, mask); in ovl_copyflags()
/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 …]

12345678