Commit 2e8a9bc4 authored by Brian Gerst's avatar Brian Gerst Committed by Linus Torvalds

[PATCH] struct super_block cleanup - msdos/vfat

Don't print out FAT superblock warnings if the IO failed.
parent c4da2aea
......@@ -607,7 +607,7 @@ int msdos_fill_super(struct super_block *sb,void *data, int silent)
res = fat_fill_super(sb, data, silent, &msdos_dir_inode_operations, 0);
if (res) {
if (!silent)
if (res == -EINVAL && !silent)
printk(KERN_INFO "VFS: Can't find a valid"
" MSDOS filesystem on dev %s.\n", sb->s_id);
return res;
......
......@@ -1290,7 +1290,7 @@ int vfat_fill_super(struct super_block *sb, void *data, int silent)
res = fat_fill_super(sb, data, silent, &vfat_dir_inode_operations, 1);
if (res) {
if (!silent)
if (res == -EINVAL && !silent)
printk(KERN_INFO "VFS: Can't find a valid"
" VFAT filesystem on dev %s.\n", sb->s_id);
return res;
......
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