Re: [PATCH] code cleanup on include/linux/fs.h

From: Alexey Dobriyan
Date: Thu Feb 17 2011 - 06:50:49 EST


On Thu, Feb 17, 2011 at 11:37 AM, Steven Liu <lingjiujianke@xxxxxxxxx> wrote:
>     Cleanup the unsed code on  include/linux/fs.h.
>     All filesystem using mount_bdev and mount_nodev
>     to replace get_sb_bdev and get_sb_nodev.
>     So rmmove the unused code.

> -extern int get_sb_bdev(struct file_system_type *fs_type,
> -       int flags, const char *dev_name, void *data,
> -       int (*fill_super)(struct super_block *, void *, int),
> -       struct vfsmount *mnt);
>  extern struct dentry *mount_single(struct file_system_type *fs_type,
>        int flags, void *data,
>        int (*fill_super)(struct super_block *, void *, int));
> @@ -1821,10 +1817,6 @@ extern int get_sb_single(struct
> file_system_type *fs_type,
>  extern struct dentry *mount_nodev(struct file_system_type *fs_type,
>        int flags, void *data,
>        int (*fill_super)(struct super_block *, void *, int));
> -extern int get_sb_nodev(struct file_system_type *fs_type,
> -       int flags, void *data,
> -       int (*fill_super)(struct super_block *, void *, int),
> -       struct vfsmount *mnt);

The functions themselves are still in place, what's up?

fs/super.c:846:int get_sb_bdev(struct file_system_type *fs_type,
fs/super.c:861:EXPORT_SYMBOL(get_sb_bdev);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/