lkml.org 
[lkml]   [2002]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] struct super_block cleanup - msdos/vfat
From
Date
Hi,

Brian Gerst <bgerst@didntduck.org> writes:

> diff -urN linux-2.5.7-pre1/fs/msdos/namei.c linux/fs/msdos/namei.c
> --- linux-2.5.7-pre1/fs/msdos/namei.c Thu Mar 7 21:18:32 2002
> +++ linux/fs/msdos/namei.c Wed Mar 13 08:20:12 2002
> @@ -603,17 +603,14 @@
>
> int msdos_fill_super(struct super_block *sb,void *data, int silent)
> {
> - struct super_block *res;
> + int res;
>
> - MSDOS_SB(sb)->options.isvfat = 0;
> - res = fat_read_super(sb, data, silent, &msdos_dir_inode_operations);
> - if (IS_ERR(res))
> - return PTR_ERR(res);
> - if (res == NULL) {
> + res = fat_fill_super(sb, data, silent, &msdos_dir_inode_operations, 0);
> + if (res) {
> if (!silent)
> printk(KERN_INFO "VFS: Can't find a valid"
> " MSDOS filesystem on dev %s.\n", sb->s_id);

If the error is I/O error, I think we shouldn't output this message.
What do you think about this?

> - return -EINVAL;
> + return res;
> }
>
> sb->s_root->d_op = &msdos_dentry_operations;
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.082 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site