Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033930AbbKFWBK (ORCPT ); Fri, 6 Nov 2015 17:01:10 -0500 Received: from mta02.ornl.gov ([128.219.177.12]:5449 "EHLO mta02.ornl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030287AbbKFWBI convert rfc822-to-8bit (ORCPT ); Fri, 6 Nov 2015 17:01:08 -0500 X-SG: RELAYLIST X-IronPort-AV: E=Sophos;i="5.20,254,1444708800"; d="scan'208";a="91765260" From: "Simmons, James A." To: "'Shivani Bhardwaj'" , "gregkh@linuxfoundation.org" CC: "oleg.drokin@intel.com" , "devel@driverdev.osuosl.org" , "andreas.dilger@intel.com" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 3/3] Staging: lustre: ldlm_pool: Drop unneeded wrapper function Thread-Topic: [PATCH 3/3] Staging: lustre: ldlm_pool: Drop unneeded wrapper function Thread-Index: AQHRGLrqdu9DzXk5mUiUKijXxtORIZ6Pi4Eg Date: Fri, 6 Nov 2015 22:01:05 +0000 Message-ID: <6dcd3f4640184bc6bbd328c5f80b27f5@EXCHCS32.ornl.gov> References: <746c1f287210caa9f0c22c0664849f1532c35512.1446831648.git.shivanib134@gmail.com> In-Reply-To: <746c1f287210caa9f0c22c0664849f1532c35512.1446831648.git.shivanib134@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [128.219.12.132] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2405 Lines: 68 >-----Original Message----- >From: devel [mailto:driverdev-devel-bounces@linuxdriverproject.org] On Behalf Of Shivani Bhardwaj >Sent: Friday, November 06, 2015 12:45 PM >To: gregkh@linuxfoundation.org >Cc: oleg.drokin@intel.com; devel@driverdev.osuosl.org; andreas.dilger@intel.com; linux-kernel@vger.kernel.org >Subject: [PATCH 3/3] Staging: lustre: ldlm_pool: Drop unneeded wrapper function > >Remove the function ldlm_pool_set_limit() and replace its calls with the >function it wrapped. > >Signed-off-by: Shivani Bhardwaj >--- > drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) > Acked-by: James Simmons diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c index 20cf389..e59b286 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c @@ -208,14 +208,6 @@ static inline int ldlm_pool_t2gsp(unsigned int t) } /** - * Sets passed \a limit to \a pl. - */ -static void ldlm_pool_set_limit(struct ldlm_pool *pl, __u32 limit) -{ - atomic_set(&pl->pl_limit, limit); -} - -/** * Recalculates next stats on passed \a pl. * * \pre ->pl_lock is locked. @@ -257,7 +249,7 @@ static void ldlm_cli_pool_pop_slv(struct ldlm_pool *pl) LASSERT(obd != NULL); read_lock(&obd->obd_pool_lock); pl->pl_server_lock_volume = obd->obd_pool_slv; - ldlm_pool_set_limit(pl, obd->obd_pool_limit); + atomic_set(&pl->pl_limit, obd->obd_pool_limit); read_unlock(&obd->obd_pool_lock); } @@ -678,7 +670,7 @@ int ldlm_pool_init(struct ldlm_pool *pl, struct ldlm_namespace *ns, snprintf(pl->pl_name, sizeof(pl->pl_name), "ldlm-pool-%s-%d", ldlm_ns_name(ns), idx); - ldlm_pool_set_limit(pl, 1); + atomic_set(&pl->pl_limit, 1); pl->pl_server_lock_volume = 0; pl->pl_ops = &ldlm_cli_pool_ops; pl->pl_recalc_period = LDLM_POOL_CLI_DEF_RECALC_PERIOD; -- 2.1.0 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel -- 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/