mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
gfs2: Get to super block from inode in tracepoints
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>
This commit is contained in:
parent
e0600e95bd
commit
9fa5390e3e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user