Lines Matching refs:dip
76 struct xfs_dinode *dip, in xfs_iformat_local() argument
85 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local()
89 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local()
91 "xfs_iformat_local", dip, sizeof(*dip), in xfs_iformat_local()
97 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local()
108 struct xfs_dinode *dip, in xfs_iformat_extents() argument
114 xfs_extnum_t nex = xfs_dfork_nextents(dip, whichfork); in xfs_iformat_extents()
125 if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, mp, whichfork))) { in xfs_iformat_extents()
129 "xfs_iformat_extents(1)", dip, sizeof(*dip), in xfs_iformat_extents()
139 dp = (xfs_bmbt_rec_t *) XFS_DFORK_PTR(dip, whichfork); in xfs_iformat_extents()
175 struct xfs_dinode *dip, in xfs_iformat_btree() argument
187 dfp = (xfs_bmdr_block_t *)XFS_DFORK_PTR(dip, whichfork); in xfs_iformat_btree()
202 XFS_DFORK_SIZE(dip, mp, whichfork) || in xfs_iformat_btree()
222 xfs_bmdr_to_bmbt(ip, dfp, XFS_DFORK_SIZE(dip, ip->i_mount, whichfork), in xfs_iformat_btree()
234 struct xfs_dinode *dip) in xfs_iformat_data_fork() argument
246 ip->i_df.if_format = dip->di_format; in xfs_iformat_data_fork()
247 ip->i_df.if_nextents = xfs_dfork_data_extents(dip); in xfs_iformat_data_fork()
257 inode->i_rdev = xfs_to_linux_dev_t(xfs_dinode_get_rdev(dip)); in xfs_iformat_data_fork()
264 error = xfs_iformat_local(ip, dip, XFS_DATA_FORK, in xfs_iformat_data_fork()
265 be64_to_cpu(dip->di_size)); in xfs_iformat_data_fork()
270 return xfs_iformat_extents(ip, dip, XFS_DATA_FORK); in xfs_iformat_data_fork()
272 return xfs_iformat_btree(ip, dip, XFS_DATA_FORK); in xfs_iformat_data_fork()
275 dip, sizeof(*dip), __this_address); in xfs_iformat_data_fork()
281 xfs_inode_verifier_error(ip, -EFSCORRUPTED, __func__, dip, in xfs_iformat_data_fork()
282 sizeof(*dip), __this_address); in xfs_iformat_data_fork()
290 struct xfs_dinode *dip) in xfs_dfork_attr_shortform_size() argument
292 struct xfs_attr_sf_hdr *sf = XFS_DFORK_APTR(dip); in xfs_dfork_attr_shortform_size()
328 struct xfs_dinode *dip) in xfs_iformat_attr_fork() argument
330 xfs_extnum_t naextents = xfs_dfork_attr_extents(dip); in xfs_iformat_attr_fork()
337 xfs_ifork_init_attr(ip, dip->di_aformat, naextents); in xfs_iformat_attr_fork()
341 error = xfs_iformat_local(ip, dip, XFS_ATTR_FORK, in xfs_iformat_attr_fork()
342 xfs_dfork_attr_shortform_size(dip)); in xfs_iformat_attr_fork()
347 error = xfs_iformat_extents(ip, dip, XFS_ATTR_FORK); in xfs_iformat_attr_fork()
350 error = xfs_iformat_btree(ip, dip, XFS_ATTR_FORK); in xfs_iformat_attr_fork()
353 xfs_inode_verifier_error(ip, error, __func__, dip, in xfs_iformat_attr_fork()
354 sizeof(*dip), __this_address); in xfs_iformat_attr_fork()
608 struct xfs_dinode *dip, in xfs_iflush_fork() argument
633 cp = XFS_DFORK_PTR(dip, whichfork); in xfs_iflush_fork()
662 XFS_DFORK_SIZE(dip, mp, whichfork)); in xfs_iflush_fork()
669 xfs_dinode_put_rdev(dip, in xfs_iflush_fork()