From mboxrd@z Thu Jan 1 00:00:00 1970 From: rpeterso@redhat.com Date: Fri, 20 Jan 2012 09:10:14 -0600 Subject: [Cluster-devel] [PATCH 33/66] libgfs2: Mark buffer modified adding a new GFS1 block In-Reply-To: <1327072247-26275-1-git-send-email-rpeterso@redhat.com> References: <1327072247-26275-1-git-send-email-rpeterso@redhat.com> Message-ID: <1327072247-26275-34-git-send-email-rpeterso@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: Bob Peterson 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 2bdf57f..59eaa8d 100644 --- a/gfs2/libgfs2/gfs1.c +++ b/gfs2/libgfs2/gfs1.c @@ -54,7 +54,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.7.5