public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* gfs2-utils: master - Correction to an earlier commit. Buffers were being updated
@ 2009-06-10  3:10 Bob Peterson
  0 siblings, 0 replies; only message in thread
From: Bob Peterson @ 2009-06-10  3:10 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=7e624dfed376ba265b214b699144a9d8ef081751
Commit:        7e624dfed376ba265b214b699144a9d8ef081751
Parent:        6eb36495192b073d0b8942882ef62d573b77e7b9
Author:        Bob Peterson <rpeterso@redhat.com>
AuthorDate:    Tue Jun 9 22:05:53 2009 -0500
Committer:     Bob Peterson <rpeterso@redhat.com>
CommitterDate: Tue Jun 9 22:05:53 2009 -0500

Correction to an earlier commit.  Buffers were being updated

when they should not have been.  Therefore, fsck -n would fail.
---
 gfs2/libgfs2/buf.c    |    2 +-
 gfs2/libgfs2/fs_ops.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gfs2/libgfs2/buf.c b/gfs2/libgfs2/buf.c
index 88f9326..f0164b4 100644
--- a/gfs2/libgfs2/buf.c
+++ b/gfs2/libgfs2/buf.c
@@ -176,7 +176,7 @@ void brelse(struct gfs2_buffer_head *bh, enum update_flags is_updated)
 {
     /* We can't just say b_changed = updated because we don't want to     */
 	/* set it FALSE if it's TRUE until we write the changed data to disk. */
-	if (updated)
+	if (is_updated)
 		bh->b_changed = TRUE;
 	if (!bh->b_count) {
 		fprintf(stderr, "buffer count underflow for block %" PRIu64
diff --git a/gfs2/libgfs2/fs_ops.c b/gfs2/libgfs2/fs_ops.c
index 633ca9e..2624c24 100644
--- a/gfs2/libgfs2/fs_ops.c
+++ b/gfs2/libgfs2/fs_ops.c
@@ -47,7 +47,7 @@ void inode_put(struct gfs2_inode *ip, enum update_flags is_updated)
 {
 	if (is_updated)
 		gfs2_dinode_out(&ip->i_di, ip->i_bh->b_data);
-	brelse(ip->i_bh, updated);
+	brelse(ip->i_bh, is_updated);
 	free(ip);
 }
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-10  3:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-10  3:10 gfs2-utils: master - Correction to an earlier commit. Buffers were being updated Bob Peterson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).