Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ace... Commit: acee2940261ea454b8f82fcc55827a3e97ad0049 Parent: 08b9756cb840be6174af0eb962b17a048316d154 Author: Bob Peterson rpeterso@redhat.com AuthorDate: Wed Aug 10 10:25:19 2011 -0500 Committer: Bob Peterson rpeterso@redhat.com CommitterDate: Fri Jan 20 08:26:27 2012 -0600
libgfs2: Mark buffer modified adding a new GFS1 block
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; }
cluster-commits@lists.fedorahosted.org