Don't print out FAT superblock warnings if the IO failed.
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;
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;