Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8719263ybl; Wed, 25 Dec 2019 04:58:59 -0800 (PST) X-Google-Smtp-Source: APXvYqw2wm4bHsDnDa/nH1pv8QP/1yyYLgtt+h3N9OtC7uRXdU6KQIdmuKxPwyk59cxQVBwqvD6p X-Received: by 2002:a9d:6b06:: with SMTP id g6mr35427542otp.93.1577278739474; Wed, 25 Dec 2019 04:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577278739; cv=none; d=google.com; s=arc-20160816; b=g4vQGRVHT3gM26a5fMvCrcNCZVA+E5m2b28zdA2uhFVgWzNq9UgC2eQsJrX9z26f26 A3UGpsIvDnKvDNwJd9YvgrFzlQ2mSDOEJmZ+Dj9kYE8fPq2CSpfh8Fv1u/JI/3uOSWa3 7pF5MtVepday8G0UEA5T+kp8az6wXRYNMoe/bCph/w0dEC3gzBf6668EJ/PQGoNANiH1 IwSnSU7XuvF1/IzHJTWV9BDU0SvqzhMvYU7r+672GivyO2YOM52YLC/5+gomMhdFw4yF YRAXk1o+9imPyLlastgQT0sV90gHzS+fAqqoPPWiBIDQjJgUe3BrTkfkGqeVTcNiNHTp z1XQ== 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=tlYf6YGZh/3n18vFKSqTEiHy0qHmWi16wDiQeVlvY15UV8Xa2VNL4zbplQQD40Fgwv wi2NmrmJvMfUuDsKD2zCTC4VCCeElYNHCYWYgDK9ojwNQcwBqwA04Ip1w4x8CnBb9q+P g2sd+tcHAgIxU/XiKA11jzA4wzIxX1RfT3XJnmkEPYo3hERLXHwMNLyxFWPMztcK4SSl qbRm8TRW+NUrOuYDN+Z0Kd3p4UhjGx/lVR/7DKh3gBf9QMxLRNemzpNGXyG5cQWEdzqU vTaBDiCdy6BxyUezfD3fgcpPSVWHfHbfb965i8F15+YOvg2gykfHUDG/ot/AKX4+Avk6 7G0A== 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 k9si4421646oih.157.2019.12.25.04.58.48; Wed, 25 Dec 2019 04:58:59 -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 S1726435AbfLYM6N (ORCPT + 99 others); Wed, 25 Dec 2019 07:58:13 -0500 Received: from monster.unsafe.ru ([5.9.28.80]:58664 "EHLO mail.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbfLYM6N (ORCPT ); Wed, 25 Dec 2019 07:58:13 -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 579B7C61B05; Wed, 25 Dec 2019 12:52:58 +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 v6 01/10] proc: Rename struct proc_fs_info to proc_fs_opts Date: Wed, 25 Dec 2019 13:51:42 +0100 Message-Id: <20191225125151.1950142-2-gladkov.alexey@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191225125151.1950142-1-gladkov.alexey@gmail.com> References: <20191225125151.1950142-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