From: Carsten Otte Date: Fri, 3 Feb 2006 11:04:25 +0000 (-0800) Subject: [PATCH] ext2: print xip mount option in ext2_show_options X-Git-Tag: v2.6.16-rc3~248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=835417967c10b6dfaffdffddba59196196e5d431;p=platform%2Fkernel%2Flinux-3.10.git [PATCH] ext2: print xip mount option in ext2_show_options In case we have CONFIG_FS_XIP, ext2_show_options shows "xip" if EXT2_MOUNT_XIP mount flag is set. Signed-off-by: Carsten Otte Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 8d68198..cb6f9bd 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -221,6 +221,11 @@ static int ext2_show_options(struct seq_file *seq, struct vfsmount *vfs) seq_puts(seq, ",grpquota"); #endif +#if defined(CONFIG_EXT2_FS_XIP) + if (sbi->s_mount_opt & EXT2_MOUNT_XIP) + seq_puts(seq, ",xip"); +#endif + return 0; }