Lines Matching defs:dip
78 struct xfs_dinode *dip,
87 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) {
91 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork));
93 "xfs_iformat_local", dip, sizeof(*dip),
99 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size);
110 struct xfs_dinode *dip,
116 xfs_extnum_t nex = xfs_dfork_nextents(dip, whichfork);
127 if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, mp, whichfork))) {
131 "xfs_iformat_extents(1)", dip, sizeof(*dip),
141 dp = (xfs_bmbt_rec_t *) XFS_DFORK_PTR(dip, whichfork);
177 struct xfs_dinode *dip,
189 dfp = (xfs_bmdr_block_t *)XFS_DFORK_PTR(dip, whichfork);
204 XFS_DFORK_SIZE(dip, mp, whichfork) ||
221 xfs_bmdr_to_bmbt(ip, dfp, XFS_DFORK_SIZE(dip, ip->i_mount, whichfork),
233 struct xfs_dinode *dip)
245 ip->i_df.if_format = dip->di_format;
246 ip->i_df.if_nextents = xfs_dfork_data_extents(dip);
256 inode->i_rdev = xfs_to_linux_dev_t(xfs_dinode_get_rdev(dip));
263 error = xfs_iformat_local(ip, dip, XFS_DATA_FORK,
264 be64_to_cpu(dip->di_size));
269 return xfs_iformat_extents(ip, dip, XFS_DATA_FORK);
271 return xfs_iformat_btree(ip, dip, XFS_DATA_FORK);
275 return xfs_iformat_rtrmap(ip, dip);
277 return xfs_iformat_rtrefcount(ip, dip);
284 dip, sizeof(*dip), __this_address);
290 xfs_inode_verifier_error(ip, -EFSCORRUPTED, __func__, dip,
291 sizeof(*dip), __this_address);
299 struct xfs_dinode *dip)
301 struct xfs_attr_sf_hdr *sf = XFS_DFORK_APTR(dip);
337 struct xfs_dinode *dip)
339 xfs_extnum_t naextents = xfs_dfork_attr_extents(dip);
346 xfs_ifork_init_attr(ip, dip->di_aformat, naextents);
350 error = xfs_iformat_local(ip, dip, XFS_ATTR_FORK,
351 xfs_dfork_attr_shortform_size(dip));
356 error = xfs_iformat_extents(ip, dip, XFS_ATTR_FORK);
359 error = xfs_iformat_btree(ip, dip, XFS_ATTR_FORK);
362 xfs_inode_verifier_error(ip, error, __func__, dip,
363 sizeof(*dip), __this_address);
550 struct xfs_dinode *dip,
575 cp = XFS_DFORK_PTR(dip, whichfork);
604 XFS_DFORK_SIZE(dip, mp, whichfork));
611 xfs_dinode_put_rdev(dip,
624 xfs_iflush_rtrmap(ip, dip);
627 xfs_iflush_rtrefcount(ip, dip);