From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: [PATCH 02/10] KVM: x86: MMU: Add helper function to clear a bit in unsync child bitmap Date: Wed, 18 Nov 2015 10:44:56 +0800 Message-ID: <564BE628.1050705@linux.intel.com> References: <20151112204849.ba920599a8426d7196a0df73@lab.ntt.co.jp> <20151112205019.611e8216adebb465b689876e@lab.ntt.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Takuya Yoshikawa , pbonzini@redhat.com Return-path: In-Reply-To: <20151112205019.611e8216adebb465b689876e@lab.ntt.co.jp> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 11/12/2015 07:50 PM, Takuya Yoshikawa wrote: > + if (!ret) { > + clear_unsync_child_bit(sp, i); > + continue; > + } else if (ret > 0) { > nr_unsync_leaf += ret; Just a single line here, braces are unnecessary. > - else > + } else > return ret; > } else if (child->unsync) { > nr_unsync_leaf++; > if (mmu_pages_add(pvec, child, i)) > return -ENOSPC; > } else > - goto clear_child_bitmap; > - > - continue; > - > -clear_child_bitmap: > - __clear_bit(i, sp->unsync_child_bitmap); > - sp->unsync_children--; > - WARN_ON((int)sp->unsync_children < 0); > + clear_unsync_child_bit(sp, i); > }