]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - scrub/phase3.c
libfrog: store more inode and block geometry in struct xfs_fd
[thirdparty/xfsprogs-dev.git] / scrub / phase3.c
index a42d82133f06277002c5e850a6d06850bab7f790..579e08c385ffada4b85f88005bbe93ca774a64ce 100644 (file)
@@ -52,8 +52,8 @@ xfs_scrub_inode_vfs_error(
        xfs_agino_t             agino;
        int                     old_errno = errno;
 
-       agno = bstat->bs_ino / (1ULL << (ctx->inopblog + ctx->agblklog));
-       agino = bstat->bs_ino % (1ULL << (ctx->inopblog + ctx->agblklog));
+       agno = bstat->bs_ino / (1ULL << (ctx->mnt.inopblog + ctx->mnt.agblklog));
+       agino = bstat->bs_ino % (1ULL << (ctx->mnt.inopblog + ctx->mnt.agblklog));
        snprintf(descr, DESCR_BUFSZ, _("inode %"PRIu64" (%u/%u)"),
                        (uint64_t)bstat->bs_ino, agno, agino);
        errno = old_errno;
@@ -77,7 +77,7 @@ xfs_scrub_inode(
        int                     error;
 
        xfs_action_list_init(&alist);
-       agno = bstat->bs_ino / (1ULL << (ctx->inopblog + ctx->agblklog));
+       agno = bstat->bs_ino / (1ULL << (ctx->mnt.inopblog + ctx->mnt.agblklog));
        background_sleep();
 
        /* Try to open the inode to pin it. */