From: rpeterso@redhat.com Date: Fri, 20 Jan 2012 09:10:35 -0600 Subject: [Cluster-devel] [PATCH 54/66] fsck.gfs2: pass1c counts percentage backward In-Reply-To: <1327072247-26275-1-git-send-email-rpeterso@redhat.com> References: <1327072247-26275-1-git-send-email-rpeterso@redhat.com> Message-ID: <1327072247-26275-55-git-send-email-rpeterso@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: Bob Peterson 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 65003b0..554a1ef 100644 --- a/gfs2/libgfs2/block_list.c +++ b/gfs2/libgfs2/block_list.c @@ -42,7 +42,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); } } -- 1.7.7.5