On Fri, May 19, 2006 at 04:46:45PM +0100, David Howells wrote:
> informative error value to report). Call it foo_fill_super(). Now declare
>
> -struct super_block foo_get_sb(struct file_system_type *fs_type,
> - int flags, const char *dev_name, void *data)
> +int foo_get_sb(struct file_system_type *fs_type,
> + int flags, const char *dev_name, void *data, struct vfsmount *mnt)
> {
> - return get_sb_bdev(fs_type, flags, dev_name, data, ext2_fill_super);
> + return get_sb_bdev(fs_type, flags, dev_name, data, ext2_fill_super,
> + mnt);
> }
BTW, s/ext2_fill_super/foo_fill_super/, while we are at it...
> + BUG_ON(!mnt->mnt_sb);
> + BUG_ON(!mnt->mnt_sb->s_root);
> + BUG_ON(!mnt->mnt_root);
FWIW, I'm not sure it's needed. We do
> + up_write(&mnt->mnt_sb->s_umount);
soon enough and it will catch all likely breakage without cluttering
the code with BUG_ON(). Other than that, no objections.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]