xfs: skip scrub xref if corruption already noted
Don't bother looking for cross-referencing problems if the metadata is already corrupt or we've already found a cross-referencing problem. Since we added a helper function for flags testing, convert existing users to use it. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
这个提交包含在:
@@ -448,7 +448,7 @@ xfs_scrub_inode_xref_finobt(
|
||||
int has_record;
|
||||
int error;
|
||||
|
||||
if (!sc->sa.fino_cur)
|
||||
if (!sc->sa.fino_cur || xfs_scrub_skip_xref(sc->sm))
|
||||
return;
|
||||
|
||||
agino = XFS_INO_TO_AGINO(sc->mp, ino);
|
||||
@@ -491,6 +491,9 @@ xfs_scrub_inode_xref_bmap(
|
||||
xfs_filblks_t acount;
|
||||
int error;
|
||||
|
||||
if (xfs_scrub_skip_xref(sc->sm))
|
||||
return;
|
||||
|
||||
/* Walk all the extents to check nextents/naextents/nblocks. */
|
||||
error = xfs_bmap_count_blocks(sc->tp, sc->ip, XFS_DATA_FORK,
|
||||
&nextents, &count);
|
||||
|
在新工单中引用
屏蔽一个用户