* [Cluster-devel] [GFS2 PATCH] GFS2: don't reference inode's glock during block allocation trace
[not found] <629547234.41685209.1353074353463.JavaMail.root@redhat.com>
@ 2012-11-16 14:04 ` Bob Peterson
0 siblings, 0 replies; only message in thread
From: Bob Peterson @ 2012-11-16 14:04 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi,
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.
Regards,
Bob Peterson
Red Hat File Systems
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
---
diff --git a/fs/gfs2/trace_gfs2.h b/fs/gfs2/trace_gfs2.h
index bbdc78a..2ee13e8 100644
--- a/fs/gfs2/trace_gfs2.h
+++ b/fs/gfs2/trace_gfs2.h
@@ -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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-16 14:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <629547234.41685209.1353074353463.JavaMail.root@redhat.com>
2012-11-16 14:04 ` [Cluster-devel] [GFS2 PATCH] GFS2: don't reference inode's glock during block allocation trace Bob Peterson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.