From patchwork Sun May 8 22:38:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucian Adrian Grijincu X-Patchwork-Id: 94695 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7ECEFB702B for ; Mon, 9 May 2011 09:02:17 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932577Ab1EHXCJ (ORCPT ); Sun, 8 May 2011 19:02:09 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:47346 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932245Ab1EHWkx (ORCPT ); Sun, 8 May 2011 18:40:53 -0400 Received: by mail-wy0-f174.google.com with SMTP id 21so3497080wya.19 for ; Sun, 08 May 2011 15:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=T+nV/vClapj4Znwy6vti8Sh4ilO3PdnwDJ0+LHHvEVM=; b=xUwjSeF4ROCvMvbQ3YOTQaiOwZFAiKMsXgh7lnIqxYKXCF4PlG4x8BXIsJ5OYQ8nyX 14NgnAHs65EwDnKiOEEW5Aioba5JttxHYC3tcmZxIP74FCJkArVgQQ9Zglgp9Z0lkxKF k3/rpHszfYYkNyEC0OV1c1FR/WwFWu52IOWNQ= 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=yG3Ac0Y9qms10ECs/v5NCiDCaNX40kpggQsLkZeGDcFkU0NF1u1UReEaXwUoATrlcf b6MQjfQKQTWivoOm7YnACjGNvE7B0j2/xu3JL8obSdrPQFzJzYm03fxKR1jz1fDd3oyN Zr5lknvdtRMG0EgA5BGQ3sz+mSPAAkgG89d8Y= Received: by 10.227.208.85 with SMTP id gb21mr364711wbb.14.1304894451918; Sun, 08 May 2011 15:40:51 -0700 (PDT) Received: from localhost.localdomain (aut75-5-82-239-182-128.fbx.proxad.net [82.239.182.128]) by mx.google.com with ESMTPS id ed10sm3390518wbb.66.2011.05.08.15.40.50 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 May 2011 15:40:51 -0700 (PDT) From: Lucian Adrian Grijincu To: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org, Lucian Adrian Grijincu Subject: [v2 021/115] sysctl: remove .child from fscache/ Date: Mon, 9 May 2011 00:38:33 +0200 Message-Id: <1304894407-32201-22-git-send-email-lucian.grijincu@gmail.com> X-Mailer: git-send-email 1.7.5.134.g1c08b In-Reply-To: <1304894407-32201-1-git-send-email-lucian.grijincu@gmail.com> References: <1304894407-32201-1-git-send-email-lucian.grijincu@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Lucian Adrian Grijincu --- fs/fscache/main.c | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/fs/fscache/main.c b/fs/fscache/main.c index f9d8567..7f9c055 100644 --- a/fs/fscache/main.c +++ b/fs/fscache/main.c @@ -67,7 +67,7 @@ static int fscache_max_active_sysctl(struct ctl_table *table, int write, return ret; } -ctl_table fscache_sysctls[] = { +static ctl_table fscache_table[] = { { .procname = "object_max_active", .data = &fscache_object_max_active, @@ -87,14 +87,11 @@ ctl_table fscache_sysctls[] = { {} }; -ctl_table fscache_sysctls_root[] = { - { - .procname = "fscache", - .mode = 0555, - .child = fscache_sysctls, - }, - {} +static const __initdata struct ctl_path fscache_path[] = { + { .procname = "fscache" }, + { } }; + #endif /* @@ -135,7 +132,7 @@ static int __init fscache_init(void) #ifdef CONFIG_SYSCTL ret = -ENOMEM; - fscache_sysctl_header = register_sysctl_table(fscache_sysctls_root); + fscache_sysctl_header = register_sysctl_paths(fscache_path, fscache_table); if (!fscache_sysctl_header) goto error_sysctl; #endif