From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Tue, 07 Aug 2007 10:26:06 +0100 Subject: [Cluster-devel] [GFS2] Don't use journal lock type Message-ID: <1186478767.8765.708.camel@quoit> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, In GFS2 journals are just normal inodes, so we should use the normal inode lock type rather than the journal lock type, Steve. ------------------------------------------------------------------------- diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index 777ca46..976a395 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c @@ -488,7 +488,3 @@ const struct gfs2_glock_operations gfs2_quota_glops = { .go_type = LM_TYPE_QUOTA, }; -const struct gfs2_glock_operations gfs2_journal_glops = { - .go_type = LM_TYPE_JOURNAL, -}; - diff --git a/fs/gfs2/glops.h b/fs/gfs2/glops.h index a1d9b5b..cddac16 100644 --- a/fs/gfs2/glops.h +++ b/fs/gfs2/glops.h @@ -20,6 +20,5 @@ extern const struct gfs2_glock_operations gfs2_iopen_glops; extern const struct gfs2_glock_operations gfs2_flock_glops; extern const struct gfs2_glock_operations gfs2_nondisk_glops; extern const struct gfs2_glock_operations gfs2_quota_glops; -extern const struct gfs2_glock_operations gfs2_journal_glops; #endif /* __GLOPS_DOT_H__ */ diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 58c730b..ba1bb05 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c @@ -348,7 +348,7 @@ static int init_journal(struct gfs2_sbd *sdp, int undo) sdp->sd_jdesc = gfs2_jdesc_find(sdp, sdp->sd_lockstruct.ls_jid); error = gfs2_glock_nq_num(sdp, sdp->sd_lockstruct.ls_jid, - &gfs2_journal_glops, + &gfs2_inode_glops, LM_ST_EXCLUSIVE, LM_FLAG_NOEXP, &sdp->sd_journal_gh); if (error) { diff --git a/fs/gfs2/recovery.c b/fs/gfs2/recovery.c index 5ada38c..aaac6a1 100644 --- a/fs/gfs2/recovery.c +++ b/fs/gfs2/recovery.c @@ -452,7 +452,7 @@ int gfs2_recover_journal(struct gfs2_jdesc *jd) /* Aquire the journal lock so we can do recovery */ - error = gfs2_glock_nq_num(sdp, jd->jd_jid, &gfs2_journal_glops, + error = gfs2_glock_nq_num(sdp, jd->jd_jid, &gfs2_inode_glops, LM_ST_EXCLUSIVE, LM_FLAG_NOEXP | LM_FLAG_TRY | GL_NOCACHE, &j_gh);