gfs2-utils: master - fsck.gfs2: pass1c counts percentage backward

Bob Peterson rpeterso at fedoraproject.org
Tue Aug 30 20:27:17 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=d39dde5bacd8e8c11d4d202b04236b520bf6a660
Commit:        d39dde5bacd8e8c11d4d202b04236b520bf6a660
Parent:        a0af8c8c1b1c58258f2d5f91e5dca72e80ca41ca
Author:        Bob Peterson <rpeterso at redhat.com>
AuthorDate:    Tue Aug 23 22:11:24 2011 -0500
Committer:     Bob Peterson <rpeterso at redhat.com>
CommitterDate: Mon Aug 29 12:56:29 2011 -0500

fsck.gfs2: pass1c counts percentage backward

In testing I noticed that pass1c, which checks all extended
attributes, counted percent-complete backwards.  It's better to
count forward because disk block seeks will be more efficient.
This patch changes the special_list functions of block_list to
add items as "prev" so that they're processed in block order.

rhbz#675723
---
 gfs2/libgfs2/block_list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gfs2/libgfs2/block_list.c b/gfs2/libgfs2/block_list.c
index 4fb7f4b..9d99845 100644
--- a/gfs2/libgfs2/block_list.c
+++ b/gfs2/libgfs2/block_list.c
@@ -44,7 +44,7 @@ void gfs2_special_add(struct special_blocks *blocklist, uint64_t block)
 	if (b) {
 		memset(b, 0, sizeof(*b));
 		b->block = block;
-		osi_list_add(&b->list, &blocklist->list);
+		osi_list_add_prev(&b->list, &blocklist->list);
 	}
 }
 


More information about the cluster-commits mailing list