OSDN Git Service

xfs: const-ify xfs_owner_info arguments
[uclinux-h8/linux.git] / fs / xfs / scrub / repair.c
index 4fc0a5e..90ae9e1 100644 (file)
@@ -299,14 +299,14 @@ xrep_calc_ag_resblks(
 /* Allocate a block in an AG. */
 int
 xrep_alloc_ag_block(
-       struct xfs_scrub        *sc,
-       struct xfs_owner_info   *oinfo,
-       xfs_fsblock_t           *fsbno,
-       enum xfs_ag_resv_type   resv)
+       struct xfs_scrub                *sc,
+       const struct xfs_owner_info     *oinfo,
+       xfs_fsblock_t                   *fsbno,
+       enum xfs_ag_resv_type           resv)
 {
-       struct xfs_alloc_arg    args = {0};
-       xfs_agblock_t           bno;
-       int                     error;
+       struct xfs_alloc_arg            args = {0};
+       xfs_agblock_t                   bno;
+       int                             error;
 
        switch (resv) {
        case XFS_AG_RESV_AGFL:
@@ -538,17 +538,17 @@ xrep_put_freelist(
 /* Dispose of a single block. */
 STATIC int
 xrep_reap_block(
-       struct xfs_scrub        *sc,
-       xfs_fsblock_t           fsbno,
-       struct xfs_owner_info   *oinfo,
-       enum xfs_ag_resv_type   resv)
+       struct xfs_scrub                *sc,
+       xfs_fsblock_t                   fsbno,
+       const struct xfs_owner_info     *oinfo,
+       enum xfs_ag_resv_type           resv)
 {
-       struct xfs_btree_cur    *cur;
-       struct xfs_buf          *agf_bp = NULL;
-       xfs_agnumber_t          agno;
-       xfs_agblock_t           agbno;
-       bool                    has_other_rmap;
-       int                     error;
+       struct xfs_btree_cur            *cur;
+       struct xfs_buf                  *agf_bp = NULL;
+       xfs_agnumber_t                  agno;
+       xfs_agblock_t                   agbno;
+       bool                            has_other_rmap;
+       int                             error;
 
        agno = XFS_FSB_TO_AGNO(sc->mp, fsbno);
        agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno);
@@ -612,15 +612,15 @@ out_free:
 /* Dispose of every block of every extent in the bitmap. */
 int
 xrep_reap_extents(
-       struct xfs_scrub        *sc,
-       struct xfs_bitmap       *bitmap,
-       struct xfs_owner_info   *oinfo,
-       enum xfs_ag_resv_type   type)
+       struct xfs_scrub                *sc,
+       struct xfs_bitmap               *bitmap,
+       const struct xfs_owner_info     *oinfo,
+       enum xfs_ag_resv_type           type)
 {
-       struct xfs_bitmap_range *bmr;
-       struct xfs_bitmap_range *n;
-       xfs_fsblock_t           fsbno;
-       int                     error = 0;
+       struct xfs_bitmap_range         *bmr;
+       struct xfs_bitmap_range         *n;
+       xfs_fsblock_t                   fsbno;
+       int                             error = 0;
 
        ASSERT(xfs_sb_version_hasrmapbt(&sc->mp->m_sb));