Skip to content

Commit 1e88c42

Browse files
legionusebiederm
authored andcommitted
proc: rename struct proc_fs_info to proc_fs_opts
Signed-off-by: Alexey Gladkov <[email protected]> Reviewed-by: Alexey Dobriyan <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]>
1 parent 61e713b commit 1e88c42

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

fs/proc_namespace.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ static __poll_t mounts_poll(struct file *file, poll_table *wait)
3737
return res;
3838
}
3939

40-
struct proc_fs_info {
40+
struct proc_fs_opts {
4141
int flag;
4242
const char *str;
4343
};
4444

4545
static int show_sb_opts(struct seq_file *m, struct super_block *sb)
4646
{
47-
static const struct proc_fs_info fs_info[] = {
47+
static const struct proc_fs_opts fs_opts[] = {
4848
{ SB_SYNCHRONOUS, ",sync" },
4949
{ SB_DIRSYNC, ",dirsync" },
5050
{ SB_MANDLOCK, ",mand" },
5151
{ SB_LAZYTIME, ",lazytime" },
5252
{ 0, NULL }
5353
};
54-
const struct proc_fs_info *fs_infop;
54+
const struct proc_fs_opts *fs_infop;
5555

56-
for (fs_infop = fs_info; fs_infop->flag; fs_infop++) {
56+
for (fs_infop = fs_opts; fs_infop->flag; fs_infop++) {
5757
if (sb->s_flags & fs_infop->flag)
5858
seq_puts(m, fs_infop->str);
5959
}
@@ -63,7 +63,7 @@ static int show_sb_opts(struct seq_file *m, struct super_block *sb)
6363

6464
static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt)
6565
{
66-
static const struct proc_fs_info mnt_info[] = {
66+
static const struct proc_fs_opts mnt_opts[] = {
6767
{ MNT_NOSUID, ",nosuid" },
6868
{ MNT_NODEV, ",nodev" },
6969
{ MNT_NOEXEC, ",noexec" },
@@ -72,9 +72,9 @@ static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt)
7272
{ MNT_RELATIME, ",relatime" },
7373
{ 0, NULL }
7474
};
75-
const struct proc_fs_info *fs_infop;
75+
const struct proc_fs_opts *fs_infop;
7676

77-
for (fs_infop = mnt_info; fs_infop->flag; fs_infop++) {
77+
for (fs_infop = mnt_opts; fs_infop->flag; fs_infop++) {
7878
if (mnt->mnt_flags & fs_infop->flag)
7979
seq_puts(m, fs_infop->str);
8080
}

0 commit comments

Comments
 (0)