Lines Matching refs:dip

70 	struct xfs_dinode	*dip,  in xchk_inode_extsize()  argument
76 uint32_t value = be32_to_cpu(dip->di_extsize); in xchk_inode_extsize()
106 struct xfs_dinode *dip, in xchk_inode_cowextsize() argument
115 be32_to_cpu(dip->di_cowextsize), mode, flags, in xchk_inode_cowextsize()
125 struct xfs_dinode *dip, in xchk_inode_flags() argument
170 struct xfs_dinode *dip, in xchk_inode_flags2() argument
202 if (xfs_dinode_has_bigtime(dip) && !xfs_has_bigtime(mp)) in xchk_inode_flags2()
214 struct xfs_dinode *dip, in xchk_dinode_nsec() argument
219 tv = xfs_inode_from_disk_ts(dip, ts); in xchk_dinode_nsec()
228 struct xfs_dinode *dip, in xchk_dinode() argument
241 flags = be16_to_cpu(dip->di_flags); in xchk_dinode()
242 if (dip->di_version >= 3) in xchk_dinode()
243 flags2 = be64_to_cpu(dip->di_flags2); in xchk_dinode()
248 mode = be16_to_cpu(dip->di_mode); in xchk_dinode()
265 switch (dip->di_version) { in xchk_dinode()
276 if (dip->di_onlink != 0) in xchk_dinode()
279 if (dip->di_mode == 0 && sc->ip) in xchk_dinode()
282 if (dip->di_projid_hi != 0 && in xchk_dinode()
286 prid = be16_to_cpu(dip->di_projid_lo); in xchk_dinode()
294 prid |= (prid_t)be16_to_cpu(dip->di_projid_hi) << 16; in xchk_dinode()
300 if (dip->di_uid == cpu_to_be32(-1U) || in xchk_dinode()
301 dip->di_gid == cpu_to_be32(-1U)) in xchk_dinode()
312 switch (dip->di_format) { in xchk_dinode()
337 xchk_dinode_nsec(sc, ino, dip, dip->di_atime); in xchk_dinode()
338 xchk_dinode_nsec(sc, ino, dip, dip->di_mtime); in xchk_dinode()
339 xchk_dinode_nsec(sc, ino, dip, dip->di_ctime); in xchk_dinode()
346 isize = be64_to_cpu(dip->di_size); in xchk_dinode()
382 if (be64_to_cpu(dip->di_nblocks) >= in xchk_dinode()
386 if (be64_to_cpu(dip->di_nblocks) >= mp->m_sb.sb_dblocks) in xchk_dinode()
390 xchk_inode_flags(sc, dip, ino, mode, flags); in xchk_dinode()
392 xchk_inode_extsize(sc, dip, ino, mode, flags); in xchk_dinode()
394 nextents = xfs_dfork_data_extents(dip); in xchk_dinode()
395 naextents = xfs_dfork_attr_extents(dip); in xchk_dinode()
398 fork_recs = XFS_DFORK_DSIZE(dip, mp) / sizeof(struct xfs_bmbt_rec); in xchk_dinode()
399 switch (dip->di_format) { in xchk_dinode()
415 if (XFS_DFORK_APTR(dip) >= (char *)dip + mp->m_sb.sb_inodesize) in xchk_dinode()
417 if (naextents != 0 && dip->di_forkoff == 0) in xchk_dinode()
419 if (dip->di_forkoff == 0 && dip->di_aformat != XFS_DINODE_FMT_EXTENTS) in xchk_dinode()
423 if (dip->di_aformat != XFS_DINODE_FMT_LOCAL && in xchk_dinode()
424 dip->di_aformat != XFS_DINODE_FMT_EXTENTS && in xchk_dinode()
425 dip->di_aformat != XFS_DINODE_FMT_BTREE) in xchk_dinode()
429 fork_recs = XFS_DFORK_ASIZE(dip, mp) / sizeof(struct xfs_bmbt_rec); in xchk_dinode()
430 switch (dip->di_aformat) { in xchk_dinode()
444 if (dip->di_version >= 3) { in xchk_dinode()
445 xchk_dinode_nsec(sc, ino, dip, dip->di_crtime); in xchk_dinode()
446 xchk_inode_flags2(sc, dip, ino, mode, flags, flags2); in xchk_dinode()
447 xchk_inode_cowextsize(sc, dip, ino, mode, flags, in xchk_dinode()
503 struct xfs_dinode *dip) in xchk_inode_xref_bmap() argument
518 if (nextents < xfs_dfork_data_extents(dip)) in xchk_inode_xref_bmap()
525 if (nextents != xfs_dfork_attr_extents(dip)) in xchk_inode_xref_bmap()
529 if (count + acount != be64_to_cpu(dip->di_nblocks)) in xchk_inode_xref_bmap()
538 struct xfs_dinode *dip) in xchk_inode_xref() argument
558 xchk_inode_xref_bmap(sc, dip); in xchk_inode_xref()