Skip to content

Commit

Permalink
GFS2: don't reference inode's glock during block allocation trace
Browse files Browse the repository at this point in the history
This patch changes the block allocation trace so that it references
the rgd's glock rather than the inode's glock. Now that the order
of inode creation is switched, this prevents a reference to the
glock which may not be set yet.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Bob Peterson authored and Steven Whitehouse committed Nov 16, 2012
1 parent 4e2f884 commit b780416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/trace_gfs2.h
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ TRACE_EVENT(gfs2_block_alloc,
),

TP_fast_assign(
__entry->dev = ip->i_gl->gl_sbd->sd_vfs->s_dev;
__entry->dev = rgd->rd_gl->gl_sbd->sd_vfs->s_dev;
__entry->start = block;
__entry->inum = ip->i_no_addr;
__entry->len = len;
Expand Down

0 comments on commit b780416

Please sign in to comment.