xfs: fix scrub trace with null pointer in quotacheck
The quotacheck doesn't initialize sc->ip.
Cc: stable@vger.kernel.org # v6.8
Fixes: 21d7500929 ("xfs: improve dquot iteration for scrub")
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
committed by
Carlos Maiolino
parent
8dc5e9b037
commit
5d94b19f06
@@ -479,7 +479,7 @@ DECLARE_EVENT_CLASS(xchk_dqiter_class,
|
||||
__field(xfs_exntst_t, state)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->dev = cursor->sc->ip->i_mount->m_super->s_dev;
|
||||
__entry->dev = cursor->sc->mp->m_super->s_dev;
|
||||
__entry->dqtype = cursor->dqtype;
|
||||
__entry->ino = cursor->quota_ip->i_ino;
|
||||
__entry->cur_id = cursor->id;
|
||||
|
||||
Reference in New Issue
Block a user