Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5252877ybb; Tue, 24 Mar 2020 13:46:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsyHYYH8lGFegNIjJsgLSm37fVUTzHezl1jAKD22YoWnYhCUnC3Bg27RAUavya2tiFr0hOT X-Received: by 2002:a05:6830:1513:: with SMTP id k19mr22225124otp.276.1585082812959; Tue, 24 Mar 2020 13:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585082812; cv=none; d=google.com; s=arc-20160816; b=joQycADNW+ROpFLB0n/U6I20Srnyt9SetQMh9szHTU7Fu4UUN5BNBc0hR1r8k9YnkO y7z4a9RphaGht89tQfd307O0TZQva7RgBR9iZf+5Z2pCU4v5RdcJLdQp6F3h948uWjBA PN9e8LFv+mafIsmUs1Mb9So+feaw3V6HFGHGajIyV0nAwZ4UFdQFRp55zZGR33PrruFQ FzFsOmmGRmGSwU9TGoj1yFuoXyL1VyMSqYCJy11G93Fc47xzovqyHZq+d1DQ1Z2gO5FW IkqlEnSa0GXDsElGCQpRY62qfX5O63o7YJh81/ijq02q1miQ4gP/vkcDyPm+/nOBWzfz ewkA== 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=cwBFISEKuvS4VCw3QHywJ33j5KUJz+VPz2nGDCi/Z4M=; b=vxv/yBW6h95By4X3RP6No5D8FvcjURRVuQxq8SIG6Tptyo45xBdwLWFxq+kB1XG7KT +bY119eNLKWiTAU7QXjsHVsWXRlVRDeS1nf3LVk2jOeITlTtajPrwHssnyZsJE6K2kUg FHyDmmW9z41OrZeL55mBf5FQ4McPWClxHPUAZrsNzolLXsVy3BzyLpGhRQZ5a8FBfrLW 61oipuH9ulHjOgSJYH9APs2Z0OP19pyhwE7kPlffd0gerqVAtBWINFHSYzPBkNLtRMa8 /mDlAQVUhanQPiPq75i2FeL7bkHcRgMxyGyeklx5B+4Ywn292YzvC+Rmti8fOv4WTZg+ 9Q5w== 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 g81si9385872oia.8.2020.03.24.13.46.40; Tue, 24 Mar 2020 13:46:52 -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 S1728138AbgCXUqN (ORCPT + 99 others); Tue, 24 Mar 2020 16:46:13 -0400 Received: from monster.unsafe.ru ([5.9.28.80]:38462 "EHLO mail.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbgCXUqN (ORCPT ); Tue, 24 Mar 2020 16:46:13 -0400 Received: from comp-core-i7-2640m-0182e6.redhat.com (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 2C671C61B1A; Tue, 24 Mar 2020 20:46:10 +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 RESEND v9 1/8] proc: rename struct proc_fs_info to proc_fs_opts Date: Tue, 24 Mar 2020 21:44:42 +0100 Message-Id: <20200324204449.7263-2-gladkov.alexey@gmail.com> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200324204449.7263-1-gladkov.alexey@gmail.com> References: <20200324204449.7263-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.25.2