Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 9383e745e23602bc45f9c92184feea59 > files > 2

gfs2-utils-0.1.62-28.el5.src.rpm

commit 6c6638cd6055c03ef74351dc7a179c5a178b0b16
Author: Bob Peterson <bob@ganesha.peterson>
Date:   Mon Nov 30 15:16:07 2009 -0600

    gfs2: remove update_flags everywhere
    
    This patch removes the update_flags from all the gfs2-utils code.
    This help to untangle the buffer_head mess and helps solve
    issues where file systems were being updated even when no errors
    are found.
    
    rhbz#455300

diff --git a/gfs2/convert/gfs2_convert.c b/gfs2/convert/gfs2_convert.c
index 207838b..f27b25f 100644
--- a/gfs2/convert/gfs2_convert.c
+++ b/gfs2/convert/gfs2_convert.c
@@ -676,7 +676,7 @@ void fix_jdatatree(struct gfs2_sbd *sbp, struct gfs2_inode *ip,
 		/* First, build up the metatree */
 		for (h = 0; h < blk->height; h++) {
 			lookup_block(ip, bh, h, &blk->mp, 1, &new, &block);
-			brelse(bh, updated);
+			brelse(bh);
 			if (!block)
 				break;
 
@@ -693,7 +693,7 @@ void fix_jdatatree(struct gfs2_sbd *sbp, struct gfs2_inode *ip,
 		memcpy(bh->b_data + ptramt,
 		       (char *)srcptr, amount);
 		srcptr += amount;
-		brelse(bh, updated);
+		brelse(bh);
 
 		copied += amount;
 
@@ -825,7 +825,7 @@ int adjust_jdata_inode(struct gfs2_sbd *sbp, struct gfs2_buffer_head *dibh,
 				memset(bh->b_data + sizeof(struct gfs_indirect), 0,
 				       sbp->bsize - sizeof(struct gfs_indirect));
 			}
-			brelse(bh, updated);
+			brelse(bh);
 			/* Free the block so we can reuse it. This allows us to
 			   convert a "full" file system. */
 			ip->i_di.di_blocks--;