Commit 2c86490e authored by Hugh Dickins's avatar Hugh Dickins Committed by Linus Torvalds

[PATCH] tmpfs: CONFIG_TMPFS=n mount fix

My tmpfs superblock changes in 2.6.9 messed up mount -t tmpfs when
CONFIG_TMPFS is not enabled: it wrongly claimed to succeed, and left the
directory unusable, giving "Not a directory" errors thereafter.
Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ab8b6bc2
......@@ -1986,6 +1986,8 @@ static int shmem_fill_super(struct super_block *sb,
sbinfo->free_inodes = inodes;
}
sb->s_xattr = shmem_xattr_handlers;
#else
sb->s_flags |= MS_NOUSER;
#endif
sb->s_maxbytes = SHMEM_MAX_BYTES;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment