]> git.pld-linux.org Git - packages/shfs.git/blame - shfs-shfs_get_sb.patch
- api adaptations
[packages/shfs.git] / shfs-shfs_get_sb.patch
CommitLineData
47661d7e
AG
1--- shfs-0.35/shfs/Linux-2.6/inode.c.orig 2006-12-10 12:47:30.000000000 +0100
2+++ shfs-0.35/shfs/Linux-2.6/inode.c 2006-12-10 12:57:35.000000000 +0100
3@@ -341,12 +341,22 @@
4 return -EINVAL;
5 }
6
7+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)
8 static struct super_block *
9 shfs_get_sb(struct file_system_type *fs_type,
10 int flags, const char *dev_name, void *data)
11 {
12 return get_sb_nodev(fs_type, flags, data, shfs_read_super);
13 }
14+#else
b1ebf2c2 15+static int
47661d7e
AG
16+shfs_get_sb(struct file_system_type *fs_type,
17+ int flags, const char *dev_name, void *data,
18+ struct vfsmount *mnt)
19+{
20+ return get_sb_nodev(fs_type, flags, data, shfs_read_super, mnt);
21+}
22+#endif
23
24 static struct file_system_type sh_fs_type = {
25 .owner = THIS_MODULE,
This page took 0.056836 seconds and 4 git commands to generate.