Lines Matching refs:in_f
78 struct xfs_inode_log_format *in_f, in xfs_recover_inode_owner_change() argument
84 ASSERT(in_f->ilf_fields & (XFS_ILOG_DOWNER|XFS_ILOG_AOWNER)); in xfs_recover_inode_owner_change()
86 ip = xfs_inode_alloc(mp, in_f->ilf_ino); in xfs_recover_inode_owner_change()
97 if (in_f->ilf_fields & XFS_ILOG_DOWNER) { in xfs_recover_inode_owner_change()
98 ASSERT(in_f->ilf_fields & XFS_ILOG_DBROOT); in xfs_recover_inode_owner_change()
105 if (in_f->ilf_fields & XFS_ILOG_AOWNER) { in xfs_recover_inode_owner_change()
106 ASSERT(in_f->ilf_fields & XFS_ILOG_ABROOT); in xfs_recover_inode_owner_change()
276 struct xfs_inode_log_format *in_f; in xlog_recover_inode_commit_pass2() local
292 in_f = item->ri_buf[0].i_addr; in xlog_recover_inode_commit_pass2()
294 in_f = kmalloc(sizeof(struct xfs_inode_log_format), in xlog_recover_inode_commit_pass2()
297 error = xfs_inode_item_format_convert(&item->ri_buf[0], in_f); in xlog_recover_inode_commit_pass2()
306 if (xlog_is_buffer_cancelled(log, in_f->ilf_blkno, in_f->ilf_len)) { in xlog_recover_inode_commit_pass2()
308 trace_xfs_log_recover_inode_cancel(log, in_f); in xlog_recover_inode_commit_pass2()
311 trace_xfs_log_recover_inode_recover(log, in_f); in xlog_recover_inode_commit_pass2()
313 error = xfs_buf_read(mp->m_ddev_targp, in_f->ilf_blkno, in_f->ilf_len, in xlog_recover_inode_commit_pass2()
317 ASSERT(in_f->ilf_fields & XFS_ILOG_CORE); in xlog_recover_inode_commit_pass2()
318 dip = xfs_buf_offset(bp, in_f->ilf_boffset); in xlog_recover_inode_commit_pass2()
327 __func__, dip, bp, in_f->ilf_ino); in xlog_recover_inode_commit_pass2()
335 __func__, item, in_f->ilf_ino); in xlog_recover_inode_commit_pass2()
360 trace_xfs_log_recover_inode_skip(log, in_f); in xlog_recover_inode_commit_pass2()
384 trace_xfs_log_recover_inode_skip(log, in_f); in xlog_recover_inode_commit_pass2()
403 in_f->ilf_ino, ldip->di_format); in xlog_recover_inode_commit_pass2()
416 in_f->ilf_ino, ldip->di_format); in xlog_recover_inode_commit_pass2()
431 in_f->ilf_ino, ldip->di_forkoff); in xlog_recover_inode_commit_pass2()
441 in_f->ilf_ino, item->ri_buf[1].i_len); in xlog_recover_inode_commit_pass2()
458 fields = in_f->ilf_fields; in xlog_recover_inode_commit_pass2()
460 xfs_dinode_put_rdev(dip, in_f->ilf_u.ilfu_rdev); in xlog_recover_inode_commit_pass2()
462 if (in_f->ilf_size == 2) in xlog_recover_inode_commit_pass2()
466 ASSERT(in_f->ilf_size <= 4); in xlog_recover_inode_commit_pass2()
467 ASSERT((in_f->ilf_size == 3) || (fields & XFS_ILOG_AFORK)); in xlog_recover_inode_commit_pass2()
469 (len == xlog_calc_iovec_len(in_f->ilf_dsize))); in xlog_recover_inode_commit_pass2()
496 if (in_f->ilf_fields & XFS_ILOG_AFORK) { in xlog_recover_inode_commit_pass2()
497 if (in_f->ilf_fields & XFS_ILOG_DFORK) { in xlog_recover_inode_commit_pass2()
504 ASSERT(len == xlog_calc_iovec_len(in_f->ilf_asize)); in xlog_recover_inode_commit_pass2()
506 switch (in_f->ilf_fields & XFS_ILOG_AFORK) { in xlog_recover_inode_commit_pass2()
531 if ((in_f->ilf_fields & (XFS_ILOG_DOWNER|XFS_ILOG_AOWNER)) && in xlog_recover_inode_commit_pass2()
533 error = xfs_recover_inode_owner_change(mp, dip, in_f, in xlog_recover_inode_commit_pass2()
537 fa = xfs_dinode_verify(log->l_mp, in_f->ilf_ino, dip); in xlog_recover_inode_commit_pass2()
544 fa, in_f->ilf_ino); in xlog_recover_inode_commit_pass2()
557 kfree(in_f); in xlog_recover_inode_commit_pass2()