Commit 450349c0 authored by René Scharfe's avatar René Scharfe Committed by Linus Torvalds

[PATCH] hugetlbfs: fix error reporting in case of invalid mount

hugetlbfs was unnecessarily verbose, and didn't even print out the right
thing if given invalid mount options.

Just return EINVAL.
parent c4331890
......@@ -524,10 +524,9 @@ hugetlbfs_fill_super(struct super_block *sb, void *data, int silent)
struct hugetlbfs_config config;
ret = hugetlbfs_parse_options(data, &config);
if (ret) {
printk("hugetlbfs: invalid mount options: %s.\n", data);
if (ret)
return ret;
}
sb->s_blocksize = PAGE_CACHE_SIZE;
sb->s_blocksize_bits = PAGE_CACHE_SHIFT;
sb->s_magic = HUGETLBFS_MAGIC;
......
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