Lines Matching defs:breq
634 struct xfs_ibulk *breq,
639 xfs_bulkstat_to_bstat(breq->mp, &bs1, bstat);
640 if (copy_to_user(breq->ubuffer, &bs1, sizeof(bs1)))
642 return xfs_ibulk_advance(breq, sizeof(struct xfs_bstat));
647 struct xfs_ibulk *breq,
653 if (copy_to_user(breq->ubuffer, &ig1, sizeof(struct xfs_inogrp)))
655 return xfs_ibulk_advance(breq, sizeof(struct xfs_inogrp));
666 struct xfs_ibulk breq = {
695 breq.ubuffer = bulkreq.ubuffer;
696 breq.icount = bulkreq.icount;
710 breq.startino = lastino ? lastino + 1 : 0;
711 error = xfs_inumbers(&breq, xfs_fsinumbers_fmt);
712 lastino = breq.startino - 1;
714 breq.startino = lastino;
715 breq.icount = 1;
716 error = xfs_bulkstat_one(&breq, xfs_fsbulkstat_one_fmt);
718 breq.startino = lastino ? lastino + 1 : 0;
719 error = xfs_bulkstat(&breq, xfs_fsbulkstat_one_fmt);
720 lastino = breq.startino - 1;
731 copy_to_user(bulkreq.ocount, &breq.ocount, sizeof(__s32)))
740 struct xfs_ibulk *breq,
743 if (copy_to_user(breq->ubuffer, bstat, sizeof(struct xfs_bulkstat)))
745 return xfs_ibulk_advance(breq, sizeof(struct xfs_bulkstat));
750 * internal @breq bulk request appropriately. Returns 0 if the bulk request
758 struct xfs_ibulk *breq,
766 breq->startino = hdr->ino;
767 breq->ubuffer = ubuffer;
768 breq->icount = hdr->icount;
769 breq->ocount = 0;
770 breq->flags = 0;
783 breq->startino = mp->m_sb.sb_rootino;
788 breq->icount = 1;
800 if (breq->startino == 0)
801 breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0);
802 else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno)
805 breq->flags |= XFS_IBULK_SAME_AG;
808 if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno)
814 if (XFS_INO_TO_AGNO(mp, breq->startino) >= mp->m_sb.sb_agcount)
818 breq->flags |= XFS_IBULK_NREXT64;
825 * internal bulk request @breq.
830 struct xfs_ibulk *breq)
832 hdr->ino = breq->startino;
833 hdr->ocount = breq->ocount;
845 struct xfs_ibulk breq = {
860 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->bulkstat);
866 error = xfs_bulkstat(&breq, xfs_bulkstat_fmt);
871 xfs_bulk_ireq_teardown(&hdr, &breq);
880 struct xfs_ibulk *breq,
883 if (copy_to_user(breq->ubuffer, igrp, sizeof(struct xfs_inumbers)))
885 return xfs_ibulk_advance(breq, sizeof(struct xfs_inumbers));
896 struct xfs_ibulk breq = {
910 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->inumbers);
916 error = xfs_inumbers(&breq, xfs_inumbers_fmt);
921 xfs_bulk_ireq_teardown(&hdr, &breq);