Lines Matching refs:infp
43 vxfs_get_fshead(struct vxfs_oltfshead *fshp, struct vxfs_sb_info *infp) in vxfs_get_fshead() argument
45 BUG_ON(infp->vsi_fshino); in vxfs_get_fshead()
46 infp->vsi_fshino = fs32_to_cpu(infp, fshp->olt_fsino[0]); in vxfs_get_fshead()
50 vxfs_get_ilist(struct vxfs_oltilist *ilistp, struct vxfs_sb_info *infp) in vxfs_get_ilist() argument
52 BUG_ON(infp->vsi_iext); in vxfs_get_ilist()
53 infp->vsi_iext = fs32_to_cpu(infp, ilistp->olt_iext[0]); in vxfs_get_ilist()
79 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_olt() local
84 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
89 if (fs32_to_cpu(infp, op->olt_magic) != VXFS_OLT_MAGIC) { in vxfs_read_olt()
98 if (infp->vsi_oltsize > 1) { in vxfs_read_olt()
104 oaddr = bp->b_data + fs32_to_cpu(infp, op->olt_size); in vxfs_read_olt()
105 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
111 switch (fs32_to_cpu(infp, ocp->olt_type)) { in vxfs_read_olt()
113 vxfs_get_fshead((struct vxfs_oltfshead *)oaddr, infp); in vxfs_read_olt()
116 vxfs_get_ilist((struct vxfs_oltilist *)oaddr, infp); in vxfs_read_olt()
120 oaddr += fs32_to_cpu(infp, ocp->olt_size); in vxfs_read_olt()
124 return (infp->vsi_fshino && infp->vsi_iext) ? 0 : -EINVAL; in vxfs_read_olt()