• Home
  • Raw
  • Download

Lines Matching refs:from

173 	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()
210 ip->i_projid = (prid_t)be16_to_cpu(from->di_projid_hi) << 16 | in xfs_inode_from_disk()
211 be16_to_cpu(from->di_projid_lo); in xfs_inode_from_disk()
214 i_uid_write(inode, be32_to_cpu(from->di_uid)); in xfs_inode_from_disk()
215 i_gid_write(inode, be32_to_cpu(from->di_gid)); in xfs_inode_from_disk()
223 inode->i_atime = xfs_inode_from_disk_ts(from, from->di_atime); in xfs_inode_from_disk()
224 inode->i_mtime = xfs_inode_from_disk_ts(from, from->di_mtime); in xfs_inode_from_disk()
225 inode->i_ctime = xfs_inode_from_disk_ts(from, from->di_ctime); in xfs_inode_from_disk()
227 ip->i_disk_size = be64_to_cpu(from->di_size); in xfs_inode_from_disk()
228 ip->i_nblocks = be64_to_cpu(from->di_nblocks); in xfs_inode_from_disk()
229 ip->i_extsize = be32_to_cpu(from->di_extsize); in xfs_inode_from_disk()
230 ip->i_forkoff = from->di_forkoff; in xfs_inode_from_disk()
231 ip->i_diflags = be16_to_cpu(from->di_flags); in xfs_inode_from_disk()
232 ip->i_next_unlinked = be32_to_cpu(from->di_next_unlinked); in xfs_inode_from_disk()
234 if (from->di_dmevmask || from->di_dmstate) in xfs_inode_from_disk()
239 be64_to_cpu(from->di_changecount)); in xfs_inode_from_disk()
240 ip->i_crtime = xfs_inode_from_disk_ts(from, from->di_crtime); in xfs_inode_from_disk()
241 ip->i_diflags2 = be64_to_cpu(from->di_flags2); in xfs_inode_from_disk()
242 ip->i_cowextsize = be32_to_cpu(from->di_cowextsize); in xfs_inode_from_disk()
245 error = xfs_iformat_data_fork(ip, from); in xfs_inode_from_disk()
248 if (from->di_forkoff) { in xfs_inode_from_disk()
249 error = xfs_iformat_attr_fork(ip, from); in xfs_inode_from_disk()