Re: [PATCH 01/14] NFS: Permit filesystem to override root dentry on mount [try #10]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux