Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754967AbbGYJtX (ORCPT ); Sat, 25 Jul 2015 05:49:23 -0400 Received: from blu004-omc1s16.hotmail.com ([65.55.116.27]:62749 "EHLO BLU004-OMC1S16.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754794AbbGYJtT (ORCPT ); Sat, 25 Jul 2015 05:49:19 -0400 X-TMN: [pTpHFf2EmO+UDZiMAYIFK6dGnPiYcqU6An5Lz7NnSRw=] X-Originating-Email: [incarnation.p.lee@outlook.com] Message-ID: From: "Incarnation P. Lee" To: oleg.drokin@intel.com, andreas.dilger@intel.com, gregkh@linuxfoundation.org, Julia.Lawall@lip6.fr CC: HPDD-discuss@ml01.01.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, "Pan Li" Subject: [PATCH 1/5] staging: lustre: Add blank line after variable definition. Date: Sat, 25 Jul 2015 09:49:00 +0800 X-Mailer: git-send-email 1.9.0 In-Reply-To: References: X-OriginalArrivalTime: 25 Jul 2015 09:49:17.0547 (UTC) FILETIME=[2C25C3B0:01D0C6BF] MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1362 Lines: 37 From: "Pan Li" Add blank line after local variable definition to make it clear for reading. Signed-off-by: Pan Li --- drivers/staging/lustre/lustre/obdclass/cl_page.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/lustre/lustre/obdclass/cl_page.c b/drivers/staging/lustre/lustre/obdclass/cl_page.c index a7f3032..8b2c1e7 100644 --- a/drivers/staging/lustre/lustre/obdclass/cl_page.c +++ b/drivers/staging/lustre/lustre/obdclass/cl_page.c @@ -169,6 +169,7 @@ int cl_page_gang_lookup(const struct lu_env *env, struct cl_object *obj, while ((nr = radix_tree_gang_lookup(&hdr->coh_tree, (void **)pvec, idx, CLT_PVEC_SIZE)) > 0) { int end_of_region = 0; + idx = pvec[nr - 1]->cp_index + 1; for (i = 0, j = 0; i < nr; ++i) { page = pvec[i]; @@ -286,6 +287,7 @@ static struct cl_page *cl_page_alloc(const struct lu_env *env, GFP_NOFS); if (page != NULL) { int result = 0; + atomic_set(&page->cp_ref, 1); if (type == CPT_CACHEABLE) /* for radix tree */ atomic_inc(&page->cp_ref); -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/