Lines Matching refs:dip

81 	struct xfs_dinode	*dip,  in xchk_inode_extsize()  argument
88 fa = xfs_inode_validate_extsize(sc->mp, be32_to_cpu(dip->di_extsize), in xchk_inode_extsize()
103 struct xfs_dinode *dip, in xchk_inode_cowextsize() argument
112 be32_to_cpu(dip->di_cowextsize), mode, flags, in xchk_inode_cowextsize()
122 struct xfs_dinode *dip, in xchk_inode_flags() argument
167 struct xfs_dinode *dip, in xchk_inode_flags2() argument
211 struct xfs_dinode *dip, in xchk_dinode() argument
222 flags = be16_to_cpu(dip->di_flags); in xchk_dinode()
223 if (dip->di_version >= 3) in xchk_dinode()
224 flags2 = be64_to_cpu(dip->di_flags2); in xchk_dinode()
229 mode = be16_to_cpu(dip->di_mode); in xchk_dinode()
246 switch (dip->di_version) { in xchk_dinode()
256 if (dip->di_onlink != 0) in xchk_dinode()
259 if (dip->di_mode == 0 && sc->ip) in xchk_dinode()
262 if (dip->di_projid_hi != 0 && in xchk_dinode()
275 if (dip->di_uid == cpu_to_be32(-1U) || in xchk_dinode()
276 dip->di_gid == cpu_to_be32(-1U)) in xchk_dinode()
280 switch (dip->di_format) { in xchk_dinode()
305 if (be32_to_cpu(dip->di_atime.t_nsec) >= NSEC_PER_SEC) in xchk_dinode()
307 if (be32_to_cpu(dip->di_mtime.t_nsec) >= NSEC_PER_SEC) in xchk_dinode()
309 if (be32_to_cpu(dip->di_ctime.t_nsec) >= NSEC_PER_SEC) in xchk_dinode()
317 isize = be64_to_cpu(dip->di_size); in xchk_dinode()
353 if (be64_to_cpu(dip->di_nblocks) >= in xchk_dinode()
357 if (be64_to_cpu(dip->di_nblocks) >= mp->m_sb.sb_dblocks) in xchk_dinode()
361 xchk_inode_flags(sc, dip, ino, mode, flags); in xchk_dinode()
363 xchk_inode_extsize(sc, dip, ino, mode, flags); in xchk_dinode()
366 nextents = be32_to_cpu(dip->di_nextents); in xchk_dinode()
367 fork_recs = XFS_DFORK_DSIZE(dip, mp) / sizeof(struct xfs_bmbt_rec); in xchk_dinode()
368 switch (dip->di_format) { in xchk_dinode()
384 if (XFS_DFORK_APTR(dip) >= (char *)dip + mp->m_sb.sb_inodesize) in xchk_dinode()
386 if (dip->di_anextents != 0 && dip->di_forkoff == 0) in xchk_dinode()
388 if (dip->di_forkoff == 0 && dip->di_aformat != XFS_DINODE_FMT_EXTENTS) in xchk_dinode()
392 if (dip->di_aformat != XFS_DINODE_FMT_LOCAL && in xchk_dinode()
393 dip->di_aformat != XFS_DINODE_FMT_EXTENTS && in xchk_dinode()
394 dip->di_aformat != XFS_DINODE_FMT_BTREE) in xchk_dinode()
398 nextents = be16_to_cpu(dip->di_anextents); in xchk_dinode()
399 fork_recs = XFS_DFORK_ASIZE(dip, mp) / sizeof(struct xfs_bmbt_rec); in xchk_dinode()
400 switch (dip->di_aformat) { in xchk_dinode()
414 if (dip->di_version >= 3) { in xchk_dinode()
415 if (be32_to_cpu(dip->di_crtime.t_nsec) >= NSEC_PER_SEC) in xchk_dinode()
417 xchk_inode_flags2(sc, dip, ino, mode, flags, flags2); in xchk_dinode()
418 xchk_inode_cowextsize(sc, dip, ino, mode, flags, in xchk_dinode()
474 struct xfs_dinode *dip) in xchk_inode_xref_bmap() argument
489 if (nextents < be32_to_cpu(dip->di_nextents)) in xchk_inode_xref_bmap()
496 if (nextents != be16_to_cpu(dip->di_anextents)) in xchk_inode_xref_bmap()
500 if (count + acount != be64_to_cpu(dip->di_nblocks)) in xchk_inode_xref_bmap()
509 struct xfs_dinode *dip) in xchk_inode_xref() argument
531 xchk_inode_xref_bmap(sc, dip); in xchk_inode_xref()