mount options: add generic_show_options()
Add a new s_options field to struct super_block. Filesystems can save mount options passed to them in mount or remount. It is automatically freed when the superblock is destroyed. A new helper function, generic_show_options() is introduced, which uses this field to display the mount options in /proc/mounts. Another helper function, save_mount_options() may be used by filesystems to save the options in the super block. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f84e3f521e
commit
b3b304a23a
@ -105,6 +105,7 @@ static inline void destroy_super(struct super_block *s)
|
||||
{
|
||||
security_sb_free(s);
|
||||
kfree(s->s_subtype);
|
||||
kfree(s->s_options);
|
||||
kfree(s);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user