Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033931AbbKFWCM (ORCPT ); Fri, 6 Nov 2015 17:02:12 -0500 Received: from mta02.ornl.gov ([128.219.177.12]:33983 "EHLO mta02.ornl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030351AbbKFWCL convert rfc822-to-8bit (ORCPT ); Fri, 6 Nov 2015 17:02:11 -0500 X-SG: RELAYLIST X-IronPort-AV: E=Sophos;i="5.20,254,1444708800"; d="scan'208";a="91765301" 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 2/3] Staging: lustre: ldlm_pool: Drop wrapper function Thread-Topic: [PATCH 2/3] Staging: lustre: ldlm_pool: Drop wrapper function Thread-Index: AQHRGLrK9eo3Yly9IEGV43xYOJrYQZ6Pi/Ww Date: Fri, 6 Nov 2015 22:02:09 +0000 Message-ID: <8da468fc2c254efbb93ecff2b728f57b@EXCHCS32.ornl.gov> References: <53afa5c15a2f994c80df19c1117eae66592c7c73.1446831647.git.shivanib134@gmail.com> In-Reply-To: <53afa5c15a2f994c80df19c1117eae66592c7c73.1446831647.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: 2118 Lines: 58 >-----Original Message----- >From: devel [mailto:driverdev-devel-bounces@linuxdriverproject.org] On Behalf Of Shivani Bhardwaj >Sent: Friday, November 06, 2015 12:44 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 2/3] Staging: lustre: ldlm_pool: Drop wrapper function > >Remove the function ldlm_pool_get_limit() and replace its calls with the >function it wrapped. > >Signed-off-by: Shivani Bhardwaj >--- > drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 10 +--------- > 1 file changed, 1 insertion(+), 9 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 2beb36b..20cf389 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) } /** - * Returns current \a pl limit. - */ -static __u32 ldlm_pool_get_limit(struct ldlm_pool *pl) -{ - return atomic_read(&pl->pl_limit); -} - -/** * Sets passed \a limit to \a pl. */ static void ldlm_pool_set_limit(struct ldlm_pool *pl, __u32 limit) @@ -452,7 +444,7 @@ static int lprocfs_pool_state_seq_show(struct seq_file *m, void *unused) spin_lock(&pl->pl_lock); slv = pl->pl_server_lock_volume; clv = pl->pl_client_lock_volume; - limit = ldlm_pool_get_limit(pl); + limit = atomic_read(&pl->pl_limit); granted = atomic_read(&pl->pl_granted); grant_rate = atomic_read(&pl->pl_grant_rate); cancel_rate = atomic_read(&pl->pl_cancel_rate); -- 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/