summaryrefslogtreecommitdiff
path: root/fs/super.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-02-08 04:21:35 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 09:22:39 -0800
commitb3b304a23a8f7ae4c40c7b512ee45afae0010a70 (patch)
tree04ada9ae35e912b6c3d56c0aefdc297216f2e0a5 /fs/super.c
parentf84e3f521e1449300e0fdc314b7b43b418a66dc3 (diff)
downloadlinux-3.10-b3b304a23a8f7ae4c40c7b512ee45afae0010a70.tar.gz
linux-3.10-b3b304a23a8f7ae4c40c7b512ee45afae0010a70.tar.bz2
linux-3.10-b3b304a23a8f7ae4c40c7b512ee45afae0010a70.zip
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>
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c
index ceaf2e3d594..65f6849847f 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -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);
}