Skip to content

Commit 5d94b19

Browse files
alberandcmaiolino
authored andcommitted
xfs: fix scrub trace with null pointer in quotacheck
The quotacheck doesn't initialize sc->ip. Cc: [email protected] # v6.8 Fixes: 21d7500 ("xfs: improve dquot iteration for scrub") Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Andrey Albershteyn <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent 8dc5e9b commit 5d94b19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/scrub/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ DECLARE_EVENT_CLASS(xchk_dqiter_class,
479479
__field(xfs_exntst_t, state)
480480
),
481481
TP_fast_assign(
482-
__entry->dev = cursor->sc->ip->i_mount->m_super->s_dev;
482+
__entry->dev = cursor->sc->mp->m_super->s_dev;
483483
__entry->dqtype = cursor->dqtype;
484484
__entry->ino = cursor->quota_ip->i_ino;
485485
__entry->cur_id = cursor->id;

0 commit comments

Comments
 (0)