Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1633397ybl; Sat, 25 Jan 2020 05:08:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxkuWu1fmlfvzwgtxPWUAyMWaBGvZyzFp/+xbqLHmMbZ/+fNtrI6rz1SnpH6ZqLRuax2kRp X-Received: by 2002:a05:6830:1353:: with SMTP id r19mr6468851otq.288.1579957737011; Sat, 25 Jan 2020 05:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579957737; cv=none; d=google.com; s=arc-20160816; b=j6sXHTI9g42VyLcGyGX5J2j0363avq9soxCfW8S1hZha43jij3rth4b983YrxA84Yn eF8edbbBJEthXbiw3C0x/zbflVLYxYzBhkBaJEdnovEP5d1Vt2KCyK3Tymd3kdw4nLv+ BOiA6zRwh0qLj6ZCtgyO/2L98siI7hDgxWSeor6PLGJupE3MJRBrcfi1l4CK+TO1bXU4 Y9TWK0W6O3mrUmhxCEwyghV2sN3NtONJrrkgAsLhRTTPoj2SPj/7HgfwdrEkfHPQeKWH 3LUNpNVrFKmTEnzdMnHSoLKs97VcJgbhvDpttZj4jt3EITBmHKN87Izr844Ibc+4/aXY NcHA== 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=PUehyeVK7HWW31kvnRJy6QFd/9CaJZ1AMqIL/kBhHZA=; b=ZlSWIr3Lvd8TLqeBuFV8Obnmx2F3ZgFEsV0lVKm4L5jIXqJK2FThrHeMZX1uv+OqKA wU/TgLNWIHlpSbsYhjfNJxN1htgcTvUHUx3agjZ1rlYeIV/8Lg8dxK6zNJU8fVh1JTQC DvnIYVHgFpqcst/xUEkHgzqvOkyJSMT1TimBB6EDicTWyVS70GAliaKVc2QEp2uRNOjf ljR6a0pfbjLvBAGklhtMz9FvnZ+/NPGCyfelSkaLV6/etPPhtLnBzL17LP8qjL4hZqn9 +AGyC/h/YxJ9Rt1FJ1XovfJrETqu9QSpcmzwErzsopR6+cfJEFCqQJKc3HWA3J0EGKfZ ohJg== 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 d199si383737oib.135.2020.01.25.05.08.45; Sat, 25 Jan 2020 05:08:56 -0800 (PST) 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 S1728292AbgAYNGq (ORCPT + 99 others); Sat, 25 Jan 2020 08:06:46 -0500 Received: from monster.unsafe.ru ([5.9.28.80]:41322 "EHLO mail.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbgAYNGq (ORCPT ); Sat, 25 Jan 2020 08:06:46 -0500 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 D7178C61B3D; Sat, 25 Jan 2020 13:06:42 +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 , Solar Designer , Stephen Rothwell Subject: [PATCH v7 01/11] proc: Rename struct proc_fs_info to proc_fs_opts Date: Sat, 25 Jan 2020 14:05:31 +0100 Message-Id: <20200125130541.450409-2-gladkov.alexey@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200125130541.450409-1-gladkov.alexey@gmail.com> References: <20200125130541.450409-1-gladkov.alexey@gmail.com> 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.24.1