fs: rename show_mnt_opts -> show_vfsmnt_opts
This name is more consistent with what the helper does, which is to just show the vfsmount options. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Link: https://lore.kernel.org/r/fb363c62ffbf78a18095d596a19b8412aa991251.1719257716.git.josef@toxicpanda.com Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
d842379313
commit
c72b6b7224
@ -61,7 +61,7 @@ static int show_sb_opts(struct seq_file *m, struct super_block *sb)
|
|||||||
return security_sb_show_options(m, sb);
|
return security_sb_show_options(m, sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt)
|
static void show_vfsmnt_opts(struct seq_file *m, struct vfsmount *mnt)
|
||||||
{
|
{
|
||||||
static const struct proc_fs_opts mnt_opts[] = {
|
static const struct proc_fs_opts mnt_opts[] = {
|
||||||
{ MNT_NOSUID, ",nosuid" },
|
{ MNT_NOSUID, ",nosuid" },
|
||||||
@ -124,7 +124,7 @@ static int show_vfsmnt(struct seq_file *m, struct vfsmount *mnt)
|
|||||||
err = show_sb_opts(m, sb);
|
err = show_sb_opts(m, sb);
|
||||||
if (err)
|
if (err)
|
||||||
goto out;
|
goto out;
|
||||||
show_mnt_opts(m, mnt);
|
show_vfsmnt_opts(m, mnt);
|
||||||
if (sb->s_op->show_options)
|
if (sb->s_op->show_options)
|
||||||
err = sb->s_op->show_options(m, mnt_path.dentry);
|
err = sb->s_op->show_options(m, mnt_path.dentry);
|
||||||
seq_puts(m, " 0 0\n");
|
seq_puts(m, " 0 0\n");
|
||||||
@ -153,7 +153,7 @@ static int show_mountinfo(struct seq_file *m, struct vfsmount *mnt)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw");
|
seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw");
|
||||||
show_mnt_opts(m, mnt);
|
show_vfsmnt_opts(m, mnt);
|
||||||
|
|
||||||
/* Tagged fields ("foo:X" or "bar") */
|
/* Tagged fields ("foo:X" or "bar") */
|
||||||
if (IS_MNT_SHARED(r))
|
if (IS_MNT_SHARED(r))
|
||||||
|
Loading…
Reference in New Issue
Block a user