xfs: fix scrub trace with null pointer in quotacheck
Subsystems (2)
PATCH 1/1 xfs: fix scrub trace with null pointer in quotacheck
The quotacheck doesn't initialize sc->ip.
Cc <[email protected]> # v6.8
Fixes 21d7500929c8a0 ("xfs: improve dquot iteration for scrub")
Reviewed-by "Darrick J. Wong" <[email protected]>
Signed-off-by Andrey Albershteyn <[email protected]>
--- fs/xfs/scrub/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/scrub/trace.h +1 -1
@@ -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;
Signature · 1 line
2.50.0
Quoted 3 lines · Andrey Albershteyn
The quotacheck doesn't initialize
sc->ip.
Applied to for-next, thanks!
[1/1] xfs: fix scrub trace with null pointer in quotacheck
commit: 5d94b19f066480addfcdcb5efde66152ad5a7c0e
Best regards,
Signature · 1 line
Carlos Maiolino <[email protected]>