From mboxrd@z Thu Jan 1 00:00:00 1970 From: rpeterso@sourceware.org Date: 22 Jun 2007 20:49:11 -0000 Subject: [Cluster-devel] cluster/gfs2/libgfs2 fs_ops.c Message-ID: <20070622204911.26766.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: rpeterso at sourceware.org 2007-06-22 20:49:11 Modified files: gfs2/libgfs2 : fs_ops.c Log message: Resolves: bz 245360: GFS2: userland tools have problems with small block sizes Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/libgfs2/fs_ops.c.diff?cvsroot=cluster&r1=1.8&r2=1.9 --- cluster/gfs2/libgfs2/fs_ops.c 2007/05/15 18:11:10 1.8 +++ cluster/gfs2/libgfs2/fs_ops.c 2007/06/22 20:49:10 1.9 @@ -195,7 +195,7 @@ buffer_copy_tail(bh, 0, ip->i_bh, sizeof(struct gfs2_dinode)); - brelse(bh, not_updated); + brelse(bh, updated); } } @@ -345,9 +345,7 @@ unsigned int height; unsigned int end_of_metadata; unsigned int x; - enum update_flags f; - f = not_updated; *new = 0; *dblock = 0; if (extlen) @@ -379,7 +377,7 @@ for (x = 0; x < end_of_metadata; x++) { lookup_block(ip, bh, x, mp, create, new, dblock); - brelse(bh, not_updated); + brelse(bh, updated); if (!*dblock) goto out; @@ -390,7 +388,6 @@ mh.mh_type = GFS2_METATYPE_IN; mh.mh_format = GFS2_FORMAT_IN; gfs2_meta_header_out(&mh, bh->b_data); - f = updated; } else bh = bread(sdp, *dblock); } @@ -420,7 +417,7 @@ } } - brelse(bh, f); + brelse(bh, updated); out: free(mp);