From patchwork Mon Apr 30 10:02:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 8310 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 81EF523E13 for ; Mon, 30 Apr 2012 10:03:25 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 40F90A181A4 for ; Mon, 30 Apr 2012 10:03:25 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so5452583iag.11 for ; Mon, 30 Apr 2012 03:03:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:date:from :to:cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:x-gm-message-state; bh=QV4mdYvTVEiVrJALyUbH/0NhHXihg0/1rIp6+fXQkOQ=; b=JZA9FyKyWfDaI6rJXMAvb4rX3ht5WYe4VJXME3qr3j+23JUGs69bEt5qb5v4CER0Nc 6geV5QP0uG+wNEnkbnuPr3+C2PqZznyAZsDiLzeHxfXBzAZ/Tzm+Q+9+3TcBofsx0oWv v5s+CTPctn4whE1yGGoRWyTiD5L/C6oUFOrpGCZi3B0+B0gRHxUCZdEZpRwu0tlkskLG W+G87M1MDYPeayNRPuNbxhWAfi9qeYktJoEGigQ695pDZZRZyvpwG0GvqliYO3l9Orcp mO1/Jjxl3Maeli5EjsIVmPNzAf9HOmBxEFE6qMAHbm3LrO6pjRbxif0mtI3kXjvVdA80 SwsQ== Received: by 10.50.89.168 with SMTP id bp8mr9527310igb.3.1335780205040; Mon, 30 Apr 2012 03:03:25 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.137.198 with SMTP id x6csp104608ibt; Mon, 30 Apr 2012 03:03:24 -0700 (PDT) Received: by 10.68.136.65 with SMTP id py1mr38593728pbb.81.1335780204386; Mon, 30 Apr 2012 03:03:24 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id d1si14761234pbq.113.2012.04.30.03.03.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Apr 2012 03:03:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) smtp.mail=anton.vorontsov@linaro.org Received: by mail-pb0-f50.google.com with SMTP id xa12so4134281pbc.37 for ; Mon, 30 Apr 2012 03:03:24 -0700 (PDT) Received: by 10.68.229.37 with SMTP id sn5mr11085450pbc.29.1335780204176; Mon, 30 Apr 2012 03:03:24 -0700 (PDT) Received: from localhost (c-71-204-165-222.hsd1.ca.comcast.net. [71.204.165.222]) by mx.google.com with ESMTPS id k9sm15576665pbf.65.2012.04.30.03.03.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Apr 2012 03:03:23 -0700 (PDT) Date: Mon, 30 Apr 2012 03:02:02 -0700 From: Anton Vorontsov To: Glauber Costa Cc: cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, devel@openvz.org, kamezawa.hiroyu@jp.fujitsu.com, Michal Hocko , Johannes Weiner , Frederic Weisbecker , Greg Thelen , Suleiman Souhlal , John Stultz , linaro-kernel@lists.linaro.org, patches@linaro.org Subject: [PATCH 3/3] slab: Get rid of mem_cgroup_put_kmem_cache() Message-ID: <20120430100202.GC28569@lizard> References: <20120430095918.GA13824@lizard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120430095918.GA13824@lizard> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQmCR8nojI1lhyMoshGn/eEItgOr9tTrHsN+YOjBQF6s0ZYGxdCS9dM2UjIsP5+PR29fszrF The function is no longer used, so can be safely removed. Signed-off-by: Anton Vorontsov --- include/linux/slab_def.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index 2d371ae..72ea626 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h @@ -232,12 +232,6 @@ kmem_cache_get_ref(struct kmem_cache *cachep) } static inline void -mem_cgroup_put_kmem_cache(struct kmem_cache *cachep) -{ - rcu_read_unlock(); -} - -static inline void mem_cgroup_kmem_cache_prepare_sleep(struct kmem_cache *cachep) { /* @@ -266,11 +260,6 @@ kmem_cache_drop_ref(struct kmem_cache *cachep) } static inline void -mem_cgroup_put_kmem_cache(struct kmem_cache *cachep) -{ -} - -static inline void mem_cgroup_kmem_cache_prepare_sleep(struct kmem_cache *cachep) { }