Lines Matching refs:inode_p
374 struct bkey_inode_buf *inode_p; in bch2_inode_write_flags() local
376 inode_p = bch2_trans_kmalloc(trans, sizeof(*inode_p)); in bch2_inode_write_flags()
377 if (IS_ERR(inode_p)) in bch2_inode_write_flags()
378 return PTR_ERR(inode_p); in bch2_inode_write_flags()
380 bch2_inode_pack_inlined(inode_p, inode); in bch2_inode_write_flags()
381 inode_p->inode.k.p.snapshot = iter->snapshot; in bch2_inode_write_flags()
382 return bch2_trans_update(trans, iter, &inode_p->inode.k_i, flags); in bch2_inode_write_flags()
387 struct bkey_inode_buf *inode_p = in __bch2_fsck_write_inode() local
388 bch2_trans_kmalloc(trans, sizeof(*inode_p)); in __bch2_fsck_write_inode()
390 if (IS_ERR(inode_p)) in __bch2_fsck_write_inode()
391 return PTR_ERR(inode_p); in __bch2_fsck_write_inode()
393 bch2_inode_pack(inode_p, inode); in __bch2_fsck_write_inode()
394 inode_p->inode.k.p.snapshot = inode->bi_snapshot; in __bch2_fsck_write_inode()
397 &inode_p->inode.k_i, in __bch2_fsck_write_inode()
412 struct bkey_inode_buf *inode_p; in bch2_inode_to_v3() local
418 inode_p = bch2_trans_kmalloc(trans, sizeof(*inode_p)); in bch2_inode_to_v3()
419 if (IS_ERR(inode_p)) in bch2_inode_to_v3()
420 return ERR_CAST(inode_p); in bch2_inode_to_v3()
426 bch2_inode_pack(inode_p, &u); in bch2_inode_to_v3()
427 return &inode_p->inode.k_i; in bch2_inode_to_v3()