Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1679647ybh; Sun, 15 Mar 2020 08:27:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvcMxSOXPOKez1TJL7mr2G4kS1kJZKXv5PeeDSacqNAuznDolUxmFVNZlMWOC/B7FxnwoUL X-Received: by 2002:a54:418a:: with SMTP id 10mr13113941oiy.105.1584286044014; Sun, 15 Mar 2020 08:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584286044; cv=none; d=google.com; s=arc-20160816; b=PaugpQhVHbo1VoNVzffvTVpWn4YEXeKxeA89KUPHExuMB7fqUeXjKLsyZ1QHU6URGp SfznAH0qkXrvxDnuKPcUBDSWEB0xS/4GX4+xcMIU7vGpfMmk/iasTKnEF8T5xrNRZxKb P7bO8/OUhy6wrMlpKDOuc2QKAY8FJ8RRslh5Do7Takn0rYdiRkyJJVU9ELPChuqezNms oon1R1sUOldE3MS7WDILkMWzUT+mZW4hv7brR3/ATiSTAti2h356WBkDeTs2cxNzJq3D 59JDxQOIpfWfLf5GhI0EY+E6rjT4JeHppSsjZZdcGv5wAMWDEGjm5a/NFmeES9C78yUc hziw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5oI9Yr1QsUWOQDaRGBMP2mwPJTgY1K9a+wCdlatTAzQ=; b=gxV8dWE8Nvyu9RdiPO1zmdQ/drh6lAPTXs6iGpcPHtDJctLoYr5BrVOBBwAoVkzQPF ypQUFtor7i0QrAVJpe3cc4L5/2YpkjzXk3cfIgWygzxeqoN/1NF81Zrj+Dz7OMeaErug Cx7Ta9N8LVE/amI9XlxTdX2kLpyQIHJAWrIuk4hK1g42TPb4VbG6+CL6YVi0dFY6bQ9U UjTjOWXVs+c0Oa5iEw/Cj9lyNG55057QdZbdMSpfD90jSDHOUso6srwlsUVfRHf68T6r YhTLfuJpY3fwp/RcL5pMLhN5pZ0TEFjrG/pHP+1bYuQ0J+quqD/PFF8xmIPiS4aYmziY pbXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x136si7589475oif.122.2020.03.15.08.27.11; Sun, 15 Mar 2020 08:27:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728844AbgCOPZ4 (ORCPT + 99 others); Sun, 15 Mar 2020 11:25:56 -0400 Received: from monster.unsafe.ru ([5.9.28.80]:33952 "EHLO mail.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728817AbgCOPZ4 (ORCPT ); Sun, 15 Mar 2020 11:25:56 -0400 Received: from localhost.localdomain (ip-89-102-33-211.net.upcbroadband.cz [89.102.33.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.unsafe.ru (Postfix) with ESMTPSA id C42A8C61B21; Sun, 15 Mar 2020 15:25:51 +0000 (UTC) From: Alexey Gladkov To: LKML , Kernel Hardening , Linux API , Linux FS Devel , Linux Security Module Cc: Akinobu Mita , Alexander Viro , Alexey Dobriyan , Alexey Gladkov , Andrew Morton , Andy Lutomirski , Daniel Micay , Djalal Harouni , "Dmitry V . Levin" , "Eric W . Biederman" , Greg Kroah-Hartman , Ingo Molnar , "J . Bruce Fields" , Jeff Layton , Jonathan Corbet , Kees Cook , Linus Torvalds , Oleg Nesterov Subject: [PATCH v9 1/8] proc: rename struct proc_fs_info to proc_fs_opts Date: Sun, 15 Mar 2020 16:25:16 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Alexey Gladkov --- fs/proc_namespace.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 273ee82d8aa9..9a8b624bc3db 100644 --- a/fs/proc_namespace.c +++ b/fs/proc_namespace.c @@ -37,23 +37,23 @@ static __poll_t mounts_poll(struct file *file, poll_table *wait) return res; } -struct proc_fs_info { +struct proc_fs_opts { int flag; const char *str; }; static int show_sb_opts(struct seq_file *m, struct super_block *sb) { - static const struct proc_fs_info fs_info[] = { + static const struct proc_fs_opts fs_opts[] = { { SB_SYNCHRONOUS, ",sync" }, { SB_DIRSYNC, ",dirsync" }, { SB_MANDLOCK, ",mand" }, { SB_LAZYTIME, ",lazytime" }, { 0, NULL } }; - const struct proc_fs_info *fs_infop; + const struct proc_fs_opts *fs_infop; - for (fs_infop = fs_info; fs_infop->flag; fs_infop++) { + for (fs_infop = fs_opts; fs_infop->flag; fs_infop++) { if (sb->s_flags & fs_infop->flag) seq_puts(m, fs_infop->str); } @@ -63,7 +63,7 @@ static int show_sb_opts(struct seq_file *m, struct super_block *sb) static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) { - static const struct proc_fs_info mnt_info[] = { + static const struct proc_fs_opts mnt_opts[] = { { MNT_NOSUID, ",nosuid" }, { MNT_NODEV, ",nodev" }, { MNT_NOEXEC, ",noexec" }, @@ -72,9 +72,9 @@ static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) { MNT_RELATIME, ",relatime" }, { 0, NULL } }; - const struct proc_fs_info *fs_infop; + const struct proc_fs_opts *fs_infop; - for (fs_infop = mnt_info; fs_infop->flag; fs_infop++) { + for (fs_infop = mnt_opts; fs_infop->flag; fs_infop++) { if (mnt->mnt_flags & fs_infop->flag) seq_puts(m, fs_infop->str); } -- 2.25.1