Lines Matching refs:i_d
92 switch (ip->i_d.di_format) { in xfs_inode_item_size()
98 (ip->i_d.di_nextents > 0) && in xfs_inode_item_size()
142 ASSERT(ip->i_d.di_size > 0); in xfs_inode_item_size()
180 switch (ip->i_d.di_aformat) { in xfs_inode_item_size()
185 (ip->i_d.di_anextents > 0) && in xfs_inode_item_size()
293 vecp->i_addr = (xfs_caddr_t)&ip->i_d; in xfs_inode_item_format()
308 ASSERT(ip->i_d.di_version == XFS_DINODE_VERSION_1 || in xfs_inode_item_format()
310 if (ip->i_d.di_version == XFS_DINODE_VERSION_1) { in xfs_inode_item_format()
315 ASSERT(ip->i_d.di_nlink <= XFS_MAXLINK_1); in xfs_inode_item_format()
316 ip->i_d.di_onlink = ip->i_d.di_nlink; in xfs_inode_item_format()
323 ip->i_d.di_version = XFS_DINODE_VERSION_2; in xfs_inode_item_format()
324 ip->i_d.di_onlink = 0; in xfs_inode_item_format()
325 memset(&(ip->i_d.di_pad[0]), 0, sizeof(ip->i_d.di_pad)); in xfs_inode_item_format()
329 switch (ip->i_d.di_format) { in xfs_inode_item_format()
337 ASSERT(ip->i_d.di_nextents > 0); in xfs_inode_item_format()
343 if (nrecs == ip->i_d.di_nextents) { in xfs_inode_item_format()
400 ASSERT(ip->i_d.di_size > 0); in xfs_inode_item_format()
456 switch (ip->i_d.di_aformat) { in xfs_inode_item_format()
463 ASSERT(ip->i_d.di_anextents > 0); in xfs_inode_item_format()
469 ASSERT(nrecs == ip->i_d.di_anextents); in xfs_inode_item_format()
687 ASSERT(ip->i_d.di_format == XFS_DINODE_FMT_EXTENTS); in xfs_inode_item_unlock()
688 ASSERT(ip->i_d.di_nextents > 0); in xfs_inode_item_unlock()
695 ASSERT(ip->i_d.di_aformat == XFS_DINODE_FMT_EXTENTS); in xfs_inode_item_unlock()
696 ASSERT(ip->i_d.di_anextents > 0); in xfs_inode_item_unlock()