Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752786Ab1EABth (ORCPT ); Sat, 30 Apr 2011 21:49:37 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:49864 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757487Ab1EABhj (ORCPT ); Sat, 30 Apr 2011 21:37:39 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Ib49vj4OJrHPidd/kIkuxz2KTh8NbP4mixbKnp9uLsJbcAfZ+qxGc9pAH0byC5MBmd a9e1dpTc20ZqUpMtoG+xcT+kkFlLnciQLS0n6oa9MjlkSfNKPPrR9uhTtk9mZVJfpZpS +EWhIHkPYfVFZFZkkwIkhx2DHafz/6dPBQzEI= From: Lucian Adrian Grijincu To: linux-kernel@vger.kernel.org Cc: Lucian Adrian Grijincu Subject: [PATCH 34/69] sysctl: remove .child from sunrpc/svc_rdma Date: Sun, 1 May 2011 03:36:04 +0200 Message-Id: <1304213799-10257-35-git-send-email-lucian.grijincu@gmail.com> X-Mailer: git-send-email 1.7.5.134.g1c08b In-Reply-To: <1304213799-10257-1-git-send-email-lucian.grijincu@gmail.com> References: <1304213799-10257-1-git-send-email-lucian.grijincu@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1769 Lines: 64 Signed-off-by: Lucian Adrian Grijincu --- net/sunrpc/xprtrdma/svc_rdma.c | 26 +++++++------------------- 1 files changed, 7 insertions(+), 19 deletions(-) diff --git a/net/sunrpc/xprtrdma/svc_rdma.c b/net/sunrpc/xprtrdma/svc_rdma.c index 09af4fa..d7c0a70 100644 --- a/net/sunrpc/xprtrdma/svc_rdma.c +++ b/net/sunrpc/xprtrdma/svc_rdma.c @@ -118,7 +118,7 @@ static int read_reset_stat(ctl_table *table, int write, } static struct ctl_table_header *svcrdma_table_header; -static ctl_table svcrdma_parm_table[] = { +static ctl_table svcrdma_table[] = { { .procname = "max_requests", .data = &svcrdma_max_requests, @@ -213,22 +213,10 @@ static ctl_table svcrdma_parm_table[] = { { }, }; -static ctl_table svcrdma_table[] = { - { - .procname = "svc_rdma", - .mode = 0555, - .child = svcrdma_parm_table - }, - { }, -}; - -static ctl_table svcrdma_root_table[] = { - { - .procname = "sunrpc", - .mode = 0555, - .child = svcrdma_table - }, - { }, +static const struct ctl_path svcrdma_path[] = { + { .procname = "sunrpc" }, + { .procname = "svc_rdma" }, + { } }; void svc_rdma_cleanup(void) @@ -258,8 +246,8 @@ int svc_rdma_init(void) return -ENOMEM; if (!svcrdma_table_header) - svcrdma_table_header = - register_sysctl_table(svcrdma_root_table); + svcrdma_table_header = register_sysctl_paths( + svcrdma_path, svcrdma_table); /* Create the temporary map cache */ svc_rdma_map_cachep = kmem_cache_create("svc_rdma_map_cache", -- 1.7.5.134.g1c08b -- 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/