From patchwork Thu Sep 22 17:40:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9346053 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3BEFA607D0 for ; Thu, 22 Sep 2016 17:40:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3560328580 for ; Thu, 22 Sep 2016 17:40:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A2F92ABF2; Thu, 22 Sep 2016 17:40:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C20A128580 for ; Thu, 22 Sep 2016 17:40:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3606E6E918; Thu, 22 Sep 2016 17:40:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6DF196E918 for ; Thu, 22 Sep 2016 17:40:30 +0000 (UTC) Received: from [192.168.1.2] ([77.182.99.72]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0LlnMG-1bE4DL0ITo-00ZN50; Thu, 22 Sep 2016 19:40:27 +0200 Subject: [PATCH 08/14] GPU-DRM-TTM: Rename a jump label in ttm_dma_pool_shrink_scan() To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Emil Velikov References: <566ABCD9.1060404@users.sourceforge.net> <4d34446f-05ad-c3ce-5d33-8fb4f25af25c@users.sourceforge.net> From: SF Markus Elfring Message-ID: <2eb454e7-fecf-4912-da0f-fe2e9efc1e2b@users.sourceforge.net> Date: Thu, 22 Sep 2016 19:40:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <4d34446f-05ad-c3ce-5d33-8fb4f25af25c@users.sourceforge.net> X-Provags-ID: V03:K0:kPhWro+ruNxpJgx81h/1NYYKTJRLb/yYE56VC2WJQ2YuWe07fHJ SJQZwp7gGswqeGZCYK0xOZeQc7iGYiS4ynKnpSEihk2jzm/sFRpnaKAOLWq8eiesbgG8H0n k9+flA+yiUeXveVPfapAXHJWzU92QdmrXkyHLtsUTVuFG/1NJ/bJVNpuVL5KZqPhhTZiIhj 96tiFOhKD57jf7O2/ZGmQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:nQGAa4mERAY=:+Ia8Zx0P5pYzdP8WI0TtvV pSIonMZzOCxl1rkcrXhoTevh//cfoIyCKEl1LdoDMkB4i7vd2XyIzoaiS3N22O7lJ9i8awyRN TqPo1RtmAXFboAXCTHjsLRSZTKPy8XRnysh4QqJc6wBIzIjX3YXcf6LoBJqTxnG1Od6RWzZZS 36TfzlWgRMkzxreCKYG7eL5L0gVSGnpUrq4Km9v+IfEl1WISkFkMKHTpmv+k/0Gq3b+puIPRU Z6oEug30P9fp+YaanoUyh/i92YKvvmzqzwmyCF7SHCPmMiiPQZF3Cmg1WhibrjnyR4nVYhMBS MhFia/D6FjEDlMwIIznezTyvOr61xqVGBLVXL8zpwfChPD1D53Rr9ecDkoS0QCZecPEUkRT6/ rsFJeh6YcEz5HngIjspddrNC0VE+eGaKd9mLQvjkGYGtxU+y2BgHDAzk5DMZjatWoPa3VHIqR SLlpO2EdoMUqYCv9FQgiImg0G1SjYOxCdsofLNaBCPawM77zT2wtJkHDx1BXcbW5XlqkcaDVo W565zlAzOqOIQBF+JBqPaiz78Y8rQNVJsR5cvP1uec/Z+HHSpLfrfnlLB4i0RSgaqgUixNfpt yYWGfC1fGxDXnNc0Ie/5Is4Or7R29+okcieNyshlnJz7Gb53btoIuruPJ5//5eSWHBT9jUBzR DrY3i8UcBIjMra4qrmdHEj6D/DKXdlDlbHXEwRvlLA56oZkwrl0b2duB/JrdoTavD6/AaUOvf qgHiPuPZQxXQX7b1eWnOc9F1KVOweOOVfMGFtJAsTR7+876uHVuow4A5R3QBnuQsnWBRt11Ac pnnm1S9 Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Thu, 22 Sep 2016 16:02:36 +0200 Adjust a jump label according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c index ce3d361..e3f5542 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c @@ -1025,7 +1025,7 @@ ttm_dma_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) if (!mutex_trylock(&_manager->lock)) return SHRINK_STOP; if (!_manager->npools) - goto out; + goto unlock; pool_offset = ++start_pool % _manager->npools; list_for_each_entry(p, &_manager->pools, pools) { unsigned nr_free; @@ -1046,7 +1046,7 @@ ttm_dma_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) p->pool->dev_name, p->pool->name, current->pid, nr_free, shrink_pages); } -out: + unlock: mutex_unlock(&_manager->lock); return freed; }