Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3827860ybv; Mon, 10 Feb 2020 07:08:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxKKz8yrw8JTT2xRsk6WqB+Gzsu2fNDmO0O3A6JfkLhGDbr10asrNEVrH/d3X9ygoSTsoAM X-Received: by 2002:a9d:6184:: with SMTP id g4mr1318188otk.223.1581347320865; Mon, 10 Feb 2020 07:08:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581347320; cv=none; d=google.com; s=arc-20160816; b=zD8XqinRy1WMrQGqNFcuj7C4AdYbI37qXP8kQs3dmGP0mPOm0/I+O+gCA1ENTu97c2 JokprmmqmLdsNSfISnh/bDl+iJ75cg/b9KEqT7b0QNQEzYWzfILulGcp7QiQUwlAq4Qs 4sMDn6ldGc0bl5uQH++a15yDrjib/xkH2b9sJmtIPjtd0nre4Paz/ipEoglPBEcfJCd4 WPmrwFoS6nZitjnDy6uuDGeOgRXcv2DzCb/cBRKhOjuJU7bUfcGKVjdBW7+4YtMpx0VP 2cm09lWnDYjdsAM9XSYPlDTBVmAXDc9CQUb9bBTp9/V9ZjL9riE54D6jATM2Qqm+0WlH TfLg== 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=uSbblYOATXF1Iz2yuwOntJKAv79ZuDvBy4K1qZcDAqwN6dqChROLTT1LO+N1lpEJR1 rglAZCoRbt28yyPXtJID8s1lmlK67wHV7CFo/J6eqDcJ76RN93YdtNQccIeJRzsCxQx1 /6vf+TghMPxt88wPvJcg5EYlMnslle1Bm+M5d3yHAtGghsKnZfFvRwzsCSR91M+y8SXW ZtmK31/AkWexRIKJ78Gyex/JimC9Y8PLWRa0Jp9JoIVmJxuay1sr4rDQlsngegTiuRw0 CQ7EMZHU5E94T3QF4sevIVF5a8+pqFgpzHB5CgrDuVf4twhdnKDW2EdcROpQDpmHT77L y2Sg== 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 y19si315578oto.102.2020.02.10.07.08.25; Mon, 10 Feb 2020 07:08:40 -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 S1729109AbgBJPGG (ORCPT + 99 others); Mon, 10 Feb 2020 10:06:06 -0500 Received: from monster.unsafe.ru ([5.9.28.80]:53742 "EHLO mail.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729026AbgBJPGG (ORCPT ); Mon, 10 Feb 2020 10:06:06 -0500 Received: from comp-core-i7-2640m-0182e6.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) (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 ECF28C61B02; Mon, 10 Feb 2020 15:06:01 +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 Subject: [PATCH v8 01/11] proc: Rename struct proc_fs_info to proc_fs_opts Date: Mon, 10 Feb 2020 16:05:09 +0100 Message-Id: <20200210150519.538333-2-gladkov.alexey@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200210150519.538333-1-gladkov.alexey@gmail.com> References: <20200210150519.538333-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