From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12488 invoked by alias); 10 Jun 2009 03:10:21 -0000 Received: (qmail 12482 invoked by alias); 10 Jun 2009 03:10:21 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_66,SPF_HELO_PASS X-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_66,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion2.fedora.phx.redhat.com Subject: gfs2-utils: master - Correction to an earlier commit. Buffers were being updated To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: gfs2-utils.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 6eb36495192b073d0b8942882ef62d573b77e7b9 X-Git-Newrev: 7e624dfed376ba265b214b699144a9d8ef081751 From: Bob Peterson Message-Id: <20090610030954.3252D12030C@lists.fedorahosted.org> Date: Wed, 10 Jun 2009 03:10:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00489.txt.bz2 Gitweb: http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=7e624dfed376ba265b214b699144a9d8ef081751 Commit: 7e624dfed376ba265b214b699144a9d8ef081751 Parent: 6eb36495192b073d0b8942882ef62d573b77e7b9 Author: Bob Peterson AuthorDate: Tue Jun 9 22:05:53 2009 -0500 Committer: Bob Peterson 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); }