From: Bob Peterson Date: Thu, 11 Aug 2011 17:13:31 -0400 (EDT) Subject: [Cluster-devel] [Patch 33/44] libgfs2: when adding a new GFS1 block, mark buffers modified Message-ID: <2105226784.544935.1313097211681.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From 1cd46c9abb1d1498d9b18afae4f6f978d71d648d Mon Sep 17 00:00:00 2001 From: Bob Peterson Date: Wed, 10 Aug 2011 10:25:19 -0500 Subject: [PATCH 33/44] libgfs2: when adding a new GFS1 block, mark buffers modified When adding new blocks to the file system for GFS1, function gfs1_lookup_block was not marking the buffer and dinode buffer as modified like gfs2_lookup_block does. This patch fixes that. rhbz#675723 --- gfs2/libgfs2/gfs1.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/gfs2/libgfs2/gfs1.c b/gfs2/libgfs2/gfs1.c index dc29006..d09a8ee 100644 --- a/gfs2/libgfs2/gfs1.c +++ b/gfs2/libgfs2/gfs1.c @@ -56,7 +56,9 @@ void gfs1_lookup_block(struct gfs2_inode *ip, struct gfs2_buffer_head *bh, *block = meta_alloc(ip); *ptr = cpu_to_be64(*block); + bmodified(bh); ip->i_di.di_blocks++; + bmodified(ip->i_bh); *new = 1; } -- 1.7.4.4