proc: rename struct proc_fs_info to proc_fs_opts
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com> Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
parent
61e713bdca
commit
1e88c42019
@ -37,23 +37,23 @@ static __poll_t mounts_poll(struct file *file, poll_table *wait)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct proc_fs_info {
|
struct proc_fs_opts {
|
||||||
int flag;
|
int flag;
|
||||||
const char *str;
|
const char *str;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int show_sb_opts(struct seq_file *m, struct super_block *sb)
|
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_SYNCHRONOUS, ",sync" },
|
||||||
{ SB_DIRSYNC, ",dirsync" },
|
{ SB_DIRSYNC, ",dirsync" },
|
||||||
{ SB_MANDLOCK, ",mand" },
|
{ SB_MANDLOCK, ",mand" },
|
||||||
{ SB_LAZYTIME, ",lazytime" },
|
{ SB_LAZYTIME, ",lazytime" },
|
||||||
{ 0, NULL }
|
{ 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)
|
if (sb->s_flags & fs_infop->flag)
|
||||||
seq_puts(m, fs_infop->str);
|
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 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_NOSUID, ",nosuid" },
|
||||||
{ MNT_NODEV, ",nodev" },
|
{ MNT_NODEV, ",nodev" },
|
||||||
{ MNT_NOEXEC, ",noexec" },
|
{ MNT_NOEXEC, ",noexec" },
|
||||||
@ -72,9 +72,9 @@ static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt)
|
|||||||
{ MNT_RELATIME, ",relatime" },
|
{ MNT_RELATIME, ",relatime" },
|
||||||
{ 0, NULL }
|
{ 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)
|
if (mnt->mnt_flags & fs_infop->flag)
|
||||||
seq_puts(m, fs_infop->str);
|
seq_puts(m, fs_infop->str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user