From: Bob Peterson Date: Mon, 20 Mar 2017 08:56:06 -0400 (EDT) Subject: [Cluster-devel] [fsck.gfs2 PATCH] fsck.gfs2: Make pass2 go by directory rbtree for performance In-Reply-To: <7b3cbb39-70b4-941a-b6be-cf4eaff2fb9a@redhat.com> References: <11081612.10501503.1468414034320.JavaMail.zimbra@redhat.com> <7b3cbb39-70b4-941a-b6be-cf4eaff2fb9a@redhat.com> Message-ID: <167440428.4012305.1490014566668.JavaMail.zimbra@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Andy, Sorry for the delay. I guess I've been caught up in kernel work too long. ----- Original Message ----- | > + for (tmp = osi_first(&dirtree); tmp; tmp = next) { | > + next = osi_next(tmp); | | Why not 'for (next = osi_first(&dirtree); next; next = osi_next(next)) {' ? The reason is: Any corruption caught might take the item off the list, so it needs to be a "safe" version. | ACK | | Andy Thanks for the review and the ACK. I'm under the gun on this (due to my own fault, but nonetheless), so I'm going to push it to master. Regards, Bob Peterson Red Hat File Systems