Lines Matching refs:dip

214 	struct xfs_dinode	*dip,  in xchk_inode_extsize()  argument
220 uint32_t value = be32_to_cpu(dip->di_extsize); in xchk_inode_extsize()
250 struct xfs_dinode *dip, in xchk_inode_cowextsize() argument
259 be32_to_cpu(dip->di_cowextsize), mode, flags, in xchk_inode_cowextsize()
269 struct xfs_dinode *dip, in xchk_inode_flags() argument
314 struct xfs_dinode *dip, in xchk_inode_flags2() argument
346 if (xfs_dinode_has_bigtime(dip) && !xfs_has_bigtime(mp)) in xchk_inode_flags2()
362 struct xfs_dinode *dip, in xchk_dinode_nsec() argument
367 tv = xfs_inode_from_disk_ts(dip, ts); in xchk_dinode_nsec()
376 struct xfs_dinode *dip, in xchk_dinode() argument
389 flags = be16_to_cpu(dip->di_flags); in xchk_dinode()
390 if (dip->di_version >= 3) in xchk_dinode()
391 flags2 = be64_to_cpu(dip->di_flags2); in xchk_dinode()
396 mode = be16_to_cpu(dip->di_mode); in xchk_dinode()
413 switch (dip->di_version) { in xchk_dinode()
424 if (dip->di_onlink != 0) in xchk_dinode()
427 if (dip->di_mode == 0 && sc->ip) in xchk_dinode()
430 if (dip->di_projid_hi != 0 && in xchk_dinode()
434 prid = be16_to_cpu(dip->di_projid_lo); in xchk_dinode()
442 prid |= (prid_t)be16_to_cpu(dip->di_projid_hi) << 16; in xchk_dinode()
448 if (dip->di_uid == cpu_to_be32(-1U) || in xchk_dinode()
449 dip->di_gid == cpu_to_be32(-1U)) in xchk_dinode()
460 switch (dip->di_format) { in xchk_dinode()
485 xchk_dinode_nsec(sc, ino, dip, dip->di_atime); in xchk_dinode()
486 xchk_dinode_nsec(sc, ino, dip, dip->di_mtime); in xchk_dinode()
487 xchk_dinode_nsec(sc, ino, dip, dip->di_ctime); in xchk_dinode()
494 isize = be64_to_cpu(dip->di_size); in xchk_dinode()
530 if (be64_to_cpu(dip->di_nblocks) >= in xchk_dinode()
534 if (be64_to_cpu(dip->di_nblocks) >= mp->m_sb.sb_dblocks) in xchk_dinode()
538 xchk_inode_flags(sc, dip, ino, mode, flags); in xchk_dinode()
540 xchk_inode_extsize(sc, dip, ino, mode, flags); in xchk_dinode()
542 nextents = xfs_dfork_data_extents(dip); in xchk_dinode()
543 naextents = xfs_dfork_attr_extents(dip); in xchk_dinode()
546 fork_recs = XFS_DFORK_DSIZE(dip, mp) / sizeof(struct xfs_bmbt_rec); in xchk_dinode()
547 switch (dip->di_format) { in xchk_dinode()
563 if (XFS_DFORK_BOFF(dip) >= mp->m_sb.sb_inodesize) in xchk_dinode()
565 if (naextents != 0 && dip->di_forkoff == 0) in xchk_dinode()
567 if (dip->di_forkoff == 0 && dip->di_aformat != XFS_DINODE_FMT_EXTENTS) in xchk_dinode()
571 if (dip->di_aformat != XFS_DINODE_FMT_LOCAL && in xchk_dinode()
572 dip->di_aformat != XFS_DINODE_FMT_EXTENTS && in xchk_dinode()
573 dip->di_aformat != XFS_DINODE_FMT_BTREE) in xchk_dinode()
577 fork_recs = XFS_DFORK_ASIZE(dip, mp) / sizeof(struct xfs_bmbt_rec); in xchk_dinode()
578 switch (dip->di_aformat) { in xchk_dinode()
592 if (dip->di_version >= 3) { in xchk_dinode()
593 xchk_dinode_nsec(sc, ino, dip, dip->di_crtime); in xchk_dinode()
594 xchk_inode_flags2(sc, dip, ino, mode, flags, flags2); in xchk_dinode()
595 xchk_inode_cowextsize(sc, dip, ino, mode, flags, in xchk_dinode()
651 struct xfs_dinode *dip) in xchk_inode_xref_bmap() argument
666 if (nextents < xfs_dfork_data_extents(dip)) in xchk_inode_xref_bmap()
673 if (nextents != xfs_dfork_attr_extents(dip)) in xchk_inode_xref_bmap()
677 if (count + acount != be64_to_cpu(dip->di_nblocks)) in xchk_inode_xref_bmap()
686 struct xfs_dinode *dip) in xchk_inode_xref() argument
707 xchk_inode_xref_bmap(sc, dip); in xchk_inode_xref()