From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752437Ab2GSMmf (ORCPT ); Thu, 19 Jul 2012 08:42:35 -0400 Received: from mail9.hitachi.co.jp ([133.145.228.44]:37267 "EHLO mail9.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752362Ab2GSMma (ORCPT ); Thu, 19 Jul 2012 08:42:30 -0400 X-AuditID: b753bd60-9ea82ba000000655-a5-500800b3b688 X-AuditID: b753bd60-9ea82ba000000655-a5-500800b3b688 From: Mitsuo Hayasaka Subject: [PATCH -v2 3/6] fuse: remove cache for fuse request allocation To: Miklos Szeredi , Alexander Viro , Andrew Morton , Muthukumar R Cc: fuse-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, yrl.pp-manager.tt@hitachi.com, Mitsuo Hayasaka , Miklos Szeredi , Nikolaus Rath , Liu Yuan , Has-Wen Nienhuys Date: Thu, 19 Jul 2012 21:49:34 +0900 Message-ID: <20120719124934.6250.47335.stgit@ltc137.sdl.hitachi.co.jp> In-Reply-To: <20120719124851.6250.43316.stgit@ltc137.sdl.hitachi.co.jp> References: <20120719124851.6250.43316.stgit@ltc137.sdl.hitachi.co.jp> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove fuse_req_cachep, which was used for fuse request buffer. It is no longer used since the buffer is allocated dynamically due to the tunable maximum read/write request size. Signed-off-by: Mitsuo Hayasaka Cc: Miklos Szeredi Cc: Nikolaus Rath Cc: Liu Yuan Cc: Has-Wen Nienhuys --- fs/fuse/dev.c | 21 +-------------------- 1 files changed, 1 insertions(+), 20 deletions(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 511560b..4087ff4 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -23,8 +23,6 @@ MODULE_ALIAS_MISCDEV(FUSE_MINOR); MODULE_ALIAS("devname:fuse"); -static struct kmem_cache *fuse_req_cachep; - static struct fuse_conn *fuse_get_conn(struct file *file) { /* @@ -2075,27 +2073,10 @@ static struct miscdevice fuse_miscdevice = { int __init fuse_dev_init(void) { - int err = -ENOMEM; - fuse_req_cachep = kmem_cache_create("fuse_request", - sizeof(struct fuse_req), - 0, 0, NULL); - if (!fuse_req_cachep) - goto out; - - err = misc_register(&fuse_miscdevice); - if (err) - goto out_cache_clean; - - return 0; - - out_cache_clean: - kmem_cache_destroy(fuse_req_cachep); - out: - return err; + return misc_register(&fuse_miscdevice); } void fuse_dev_cleanup(void) { misc_deregister(&fuse_miscdevice); - kmem_cache_destroy(fuse_req_cachep); } From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mitsuo Hayasaka Subject: [PATCH -v2 3/6] fuse: remove cache for fuse request allocation Date: Thu, 19 Jul 2012 21:49:34 +0900 Message-ID: <20120719124934.6250.47335.stgit@ltc137.sdl.hitachi.co.jp> References: <20120719124851.6250.43316.stgit@ltc137.sdl.hitachi.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, fuse-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Miklos Szeredi , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Nikolaus Rath , yrl.pp-manager.tt-FCd8Q96Dh0JBDgjK7y7TUQ@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Miklos Szeredi , Alexander Viro , Andrew Morton , Muthukumar R Return-path: In-Reply-To: <20120719124851.6250.43316.stgit-1LHq5NA/h4JbBxankqS+oUK/SjQzz50+@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fuse-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org Remove fuse_req_cachep, which was used for fuse request buffer. It is no longer used since the buffer is allocated dynamically due to the tunable maximum read/write request size. Signed-off-by: Mitsuo Hayasaka Cc: Miklos Szeredi Cc: Nikolaus Rath Cc: Liu Yuan Cc: Has-Wen Nienhuys --- fs/fuse/dev.c | 21 +-------------------- 1 files changed, 1 insertions(+), 20 deletions(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 511560b..4087ff4 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -23,8 +23,6 @@ MODULE_ALIAS_MISCDEV(FUSE_MINOR); MODULE_ALIAS("devname:fuse"); -static struct kmem_cache *fuse_req_cachep; - static struct fuse_conn *fuse_get_conn(struct file *file) { /* @@ -2075,27 +2073,10 @@ static struct miscdevice fuse_miscdevice = { int __init fuse_dev_init(void) { - int err = -ENOMEM; - fuse_req_cachep = kmem_cache_create("fuse_request", - sizeof(struct fuse_req), - 0, 0, NULL); - if (!fuse_req_cachep) - goto out; - - err = misc_register(&fuse_miscdevice); - if (err) - goto out_cache_clean; - - return 0; - - out_cache_clean: - kmem_cache_destroy(fuse_req_cachep); - out: - return err; + return misc_register(&fuse_miscdevice); } void fuse_dev_cleanup(void) { misc_deregister(&fuse_miscdevice); - kmem_cache_destroy(fuse_req_cachep); } ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/