Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932346Ab1EHXAx (ORCPT ); Sun, 8 May 2011 19:00:53 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:40833 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755645Ab1EHWlB (ORCPT ); Sun, 8 May 2011 18:41:01 -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=bBrcfv3CiVsbz9+XIpJEq/7ekuzQIuqw34yKoQ2fND+4/e8RtqnMbqV5AIJxQedluT LozNYUnQlyR+UO07D2jY/jcq5cF6JojeuJkglDxwdYIa3rnXKHWBdiR0WqfBpOYJWbXj qWTalSEAaMMKDzIdKm1dBxdBm+y1/u31pY/Lk= From: Lucian Adrian Grijincu To: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org, Lucian Adrian Grijincu Subject: [v2 029/115] sysctl: remove .child from fs/mqueue Date: Mon, 9 May 2011 00:38:41 +0200 Message-Id: <1304894407-32201-30-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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1448 Lines: 57 Signed-off-by: Lucian Adrian Grijincu --- ipc/mq_sysctl.c | 24 ++++++------------------ 1 files changed, 6 insertions(+), 18 deletions(-) diff --git a/ipc/mq_sysctl.c b/ipc/mq_sysctl.c index 0c09366..007164b 100644 --- a/ipc/mq_sysctl.c +++ b/ipc/mq_sysctl.c @@ -62,7 +62,7 @@ static int msg_max_limit_max = MAX_MSGMAX; static int msg_maxsize_limit_min = MIN_MSGSIZEMAX; static int msg_maxsize_limit_max = MAX_MSGSIZEMAX; -static ctl_table mq_sysctls[] = { +static ctl_table mq_table[] = { { .procname = "queues_max", .data = &init_ipc_ns.mq_queues_max, @@ -91,25 +91,13 @@ static ctl_table mq_sysctls[] = { {} }; -static ctl_table mq_sysctl_dir[] = { - { - .procname = "mqueue", - .mode = 0555, - .child = mq_sysctls, - }, - {} -}; - -static ctl_table mq_sysctl_root[] = { - { - .procname = "fs", - .mode = 0555, - .child = mq_sysctl_dir, - }, - {} +static const struct ctl_path mq_path[] = { + { .procname = "fs" }, + { .procname = "mqueue" }, + { } }; struct ctl_table_header *mq_register_sysctl_table(void) { - return register_sysctl_table(mq_sysctl_root); + return register_sysctl_paths(mq_path, mq_table); } -- 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/