From: Andreas Gruenbacher <agruenba@redhat.com>
To: gfs2@lists.linux.dev
Cc: Andreas Gruenbacher <agruenba@redhat.com>,
Adrian Garcia Casado <adriangarciacasado42@gmail.com>
Subject: [PATCH 2/6] gfs2: Get to super block from inode in tracepoints
Date: Thu, 20 Aug 2026 16:21:23 +0200 [thread overview]
Message-ID: <20260820142129.1327413-3-agruenba@redhat.com> (raw)
In-Reply-To: <20260820142129.1327413-1-agruenba@redhat.com>
When we have a gfs2 inode, use that to get to the super block instead of
going via the glock.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
---
fs/gfs2/trace_gfs2.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/gfs2/trace_gfs2.h b/fs/gfs2/trace_gfs2.h
index bc40320ef239..0c60d755ba76 100644
--- a/fs/gfs2/trace_gfs2.h
+++ b/fs/gfs2/trace_gfs2.h
@@ -457,7 +457,7 @@ TRACE_EVENT(gfs2_bmap,
),
TP_fast_assign(
- __entry->dev = glock_sbd(ip->i_gl)->sd_vfs->s_dev;
+ __entry->dev = ip->i_inode.i_sb->s_dev;
__entry->lblock = lblock;
__entry->pblock = buffer_mapped(bh) ? bh->b_blocknr : 0;
__entry->inum = ip->i_no_addr;
@@ -493,7 +493,7 @@ TRACE_EVENT(gfs2_iomap_start,
),
TP_fast_assign(
- __entry->dev = glock_sbd(ip->i_gl)->sd_vfs->s_dev;
+ __entry->dev = ip->i_inode.i_sb->s_dev;
__entry->inum = ip->i_no_addr;
__entry->pos = pos;
__entry->length = length;
@@ -525,7 +525,7 @@ TRACE_EVENT(gfs2_iomap_end,
),
TP_fast_assign(
- __entry->dev = glock_sbd(ip->i_gl)->sd_vfs->s_dev;
+ __entry->dev = ip->i_inode.i_sb->s_dev;
__entry->inum = ip->i_no_addr;
__entry->offset = iomap->offset;
__entry->length = iomap->length;
--
2.55.0
next prev parent reply other threads:[~2026-08-20 14:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 14:21 [PATCH 0/6] gfs2: silence sparse Andreas Gruenbacher
2026-08-20 14:21 ` [PATCH 1/6] gfs2: Avoid ip->i_gl dereferences in gfs2_inode_lookup and gfs2_create_inode Andreas Gruenbacher
2026-08-20 14:21 ` Andreas Gruenbacher [this message]
2026-08-20 14:21 ` [PATCH 3/6] gfs2: Add inode variables Andreas Gruenbacher
2026-08-20 14:21 ` [PATCH 4/6] gfs2: Introduce gfs2_inode_glock Andreas Gruenbacher
2026-08-20 14:21 ` [PATCH 5/6] gfs2: annotate i_gl with __rcu Andreas Gruenbacher
2026-08-20 14:21 ` [PATCH 6/6] gfs2: Silence sparse signedness warning Andreas Gruenbacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260820142129.1327413-3-agruenba@redhat.com \
--to=agruenba@redhat.com \
--cc=adriangarciacasado42@gmail.com \
--cc=gfs2@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox