[Cluster-devel] [Patch 33/44] libgfs2: when adding a new GFS1 block, mark buffers modified
Bob Peterson
rpeterso at redhat.com
Thu Aug 11 21:13:31 UTC 2011
>From 1cd46c9abb1d1498d9b18afae4f6f978d71d648d Mon Sep 17 00:00:00 2001
From: Bob Peterson <rpeterso at redhat.com>
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
More information about the Cluster-devel
mailing list