Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753511AbbGWOVf (ORCPT ); Thu, 23 Jul 2015 10:21:35 -0400 Received: from blu004-omc1s14.hotmail.com ([65.55.116.25]:57383 "EHLO BLU004-OMC1S14.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752095AbbGWOV0 (ORCPT ); Thu, 23 Jul 2015 10:21:26 -0400 X-TMN: [ljeA0+/7x5wcyvIKvEyAGaNgBHFkFWgP] 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, "Incarnation P. Lee" Subject: [PATCH 1/5] Add blank line under variable declaration. Date: Thu, 23 Jul 2015 14:21:10 +0800 X-Mailer: git-send-email 1.9.0 In-Reply-To: References: X-OriginalArrivalTime: 23 Jul 2015 14:21:24.0205 (UTC) FILETIME=[DAC491D0:01D0C552] 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: 1249 Lines: 34 Signed-off-by: Incarnation P. Lee --- 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/