X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Documentation%2Ffilesystems%2Fporting;fp=Documentation%2Ffilesystems%2Fporting;h=2f388460cbe72865be75b43b96f58e231b00e379;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=5531694059ab1678c1f206690b2d747bab1033f2;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/Documentation/filesystems/porting b/Documentation/filesystems/porting index 553169405..2f388460c 100644 --- a/Documentation/filesystems/porting +++ b/Documentation/filesystems/porting @@ -50,11 +50,10 @@ Turn your foo_read_super() into a function that would return 0 in case of success and negative number in case of error (-EINVAL unless you have more informative error value to report). Call it foo_fill_super(). Now declare -int foo_get_sb(struct file_system_type *fs_type, - int flags, const char *dev_name, void *data, struct vfsmount *mnt) +struct super_block foo_get_sb(struct file_system_type *fs_type, + int flags, const char *dev_name, void *data) { - return get_sb_bdev(fs_type, flags, dev_name, data, foo_fill_super, - mnt); + return get_sb_bdev(fs_type, flags, dev_name, data, ext2_fill_super); } (or similar with s/bdev/nodev/ or s/bdev/single/, depending on the kind of