diff options
author | Andrey Albershteyn <aalbersh@redhat.com> | 2025-07-31 19:07:22 +0200 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2025-08-11 14:04:14 +0200 |
commit | 5d94b19f066480addfcdcb5efde66152ad5a7c0e (patch) | |
tree | ffc823084dfe110db8fc61c29c4d32a7a0c85a58 | |
parent | 8dc5e9b037138317c1d3151a7dabe41fa171cee1 (diff) |
xfs: fix scrub trace with null pointer in quotacheck
The quotacheck doesn't initialize sc->ip.
Cc: stable@vger.kernel.org # v6.8
Fixes: 21d7500929c8a0 ("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>
-rw-r--r-- | fs/xfs/scrub/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/trace.h b/fs/xfs/scrub/trace.h index 1e6e9c10cea2..a8187281eb96 100644 --- a/fs/xfs/scrub/trace.h +++ b/fs/xfs/scrub/trace.h @@ -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; |