Lines Matching defs:breq

712 	struct xfs_ibulk		*breq,
717 xfs_bulkstat_to_bstat(breq->mp, &bs1, bstat);
718 if (copy_to_user(breq->ubuffer, &bs1, sizeof(bs1)))
720 return xfs_ibulk_advance(breq, sizeof(struct xfs_bstat));
725 struct xfs_ibulk *breq,
731 if (copy_to_user(breq->ubuffer, &ig1, sizeof(struct xfs_inogrp)))
733 return xfs_ibulk_advance(breq, sizeof(struct xfs_inogrp));
743 struct xfs_ibulk breq = {
771 breq.ubuffer = bulkreq.ubuffer;
772 breq.icount = bulkreq.icount;
786 breq.startino = lastino ? lastino + 1 : 0;
787 error = xfs_inumbers(&breq, xfs_fsinumbers_fmt);
788 lastino = breq.startino - 1;
790 breq.startino = lastino;
791 breq.icount = 1;
792 error = xfs_bulkstat_one(&breq, xfs_fsbulkstat_one_fmt);
794 breq.startino = lastino ? lastino + 1 : 0;
795 error = xfs_bulkstat(&breq, xfs_fsbulkstat_one_fmt);
796 lastino = breq.startino - 1;
807 copy_to_user(bulkreq.ocount, &breq.ocount, sizeof(__s32)))
816 struct xfs_ibulk *breq,
819 if (copy_to_user(breq->ubuffer, bstat, sizeof(struct xfs_bulkstat)))
821 return xfs_ibulk_advance(breq, sizeof(struct xfs_bulkstat));
826 * internal @breq bulk request appropriately. Returns 0 if the bulk request
834 struct xfs_ibulk *breq,
842 breq->startino = hdr->ino;
843 breq->ubuffer = ubuffer;
844 breq->icount = hdr->icount;
845 breq->ocount = 0;
846 breq->flags = 0;
864 breq->icount = 1;
876 if (breq->startino == 0)
877 breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0);
878 else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno)
881 breq->flags |= XFS_IBULK_SAME_AG;
884 if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno)
890 if (XFS_INO_TO_AGNO(mp, breq->startino) >= mp->m_sb.sb_agcount)
898 * internal bulk request @breq.
903 struct xfs_ibulk *breq)
905 hdr->ino = breq->startino;
906 hdr->ocount = breq->ocount;
917 struct xfs_ibulk breq = {
931 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->bulkstat);
937 error = xfs_bulkstat(&breq, xfs_bulkstat_fmt);
942 xfs_bulk_ireq_teardown(&hdr, &breq);
951 struct xfs_ibulk *breq,
954 if (copy_to_user(breq->ubuffer, igrp, sizeof(struct xfs_inumbers)))
956 return xfs_ibulk_advance(breq, sizeof(struct xfs_inumbers));
967 struct xfs_ibulk breq = {
981 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->inumbers);
987 error = xfs_inumbers(&breq, xfs_inumbers_fmt);
992 xfs_bulk_ireq_teardown(&hdr, &breq);