scrub.c (6b631c60c90a1e5264bc9bcdca2c0adb492d7a62) scrub.c (a1f3e0cca41036c3c66abb6a2ed8fedc214e9a4c)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2017-2023 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <djwong@kernel.org>
5 */
6#include "xfs.h"
7#include "xfs_fs.h"
8#include "xfs_shared.h"

--- 364 unchanged lines hidden (view full) ---

373 .repair = xrep_quotacheck,
374 },
375 [XFS_SCRUB_TYPE_NLINKS] = { /* inode link counts */
376 .type = ST_FS,
377 .setup = xchk_setup_nlinks,
378 .scrub = xchk_nlinks,
379 .repair = xrep_nlinks,
380 },
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2017-2023 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <djwong@kernel.org>
5 */
6#include "xfs.h"
7#include "xfs_fs.h"
8#include "xfs_shared.h"

--- 364 unchanged lines hidden (view full) ---

373 .repair = xrep_quotacheck,
374 },
375 [XFS_SCRUB_TYPE_NLINKS] = { /* inode link counts */
376 .type = ST_FS,
377 .setup = xchk_setup_nlinks,
378 .scrub = xchk_nlinks,
379 .repair = xrep_nlinks,
380 },
381 [XFS_SCRUB_TYPE_HEALTHY] = { /* fs healthy; clean all reminders */
382 .type = ST_FS,
383 .setup = xchk_setup_fs,
384 .scrub = xchk_health_record,
385 .repair = xrep_notsupported,
386 },
381};
382
383static int
384xchk_validate_inputs(
385 struct xfs_mount *mp,
386 struct xfs_scrub_metadata *sm)
387{
388 int error;

--- 242 unchanged lines hidden ---
387};
388
389static int
390xchk_validate_inputs(
391 struct xfs_mount *mp,
392 struct xfs_scrub_metadata *sm)
393{
394 int error;

--- 242 unchanged lines hidden ---