diff options
Diffstat (limited to 'drivers/xen/xenfs')
-rw-r--r-- | drivers/xen/xenfs/super.c | 9 | ||||
-rw-r--r-- | drivers/xen/xenfs/xenbus.c | 1 |
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/xen/xenfs/super.c b/drivers/xen/xenfs/super.c index 984891e9a394..f6339d11d59c 100644 --- a/drivers/xen/xenfs/super.c +++ b/drivers/xen/xenfs/super.c | |||
@@ -93,6 +93,7 @@ static ssize_t capabilities_read(struct file *file, char __user *buf, | |||
93 | 93 | ||
94 | static const struct file_operations capabilities_file_ops = { | 94 | static const struct file_operations capabilities_file_ops = { |
95 | .read = capabilities_read, | 95 | .read = capabilities_read, |
96 | .llseek = default_llseek, | ||
96 | }; | 97 | }; |
97 | 98 | ||
98 | static int xenfs_fill_super(struct super_block *sb, void *data, int silent) | 99 | static int xenfs_fill_super(struct super_block *sb, void *data, int silent) |
@@ -120,17 +121,17 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent) | |||
120 | return rc; | 121 | return rc; |
121 | } | 122 | } |
122 | 123 | ||
123 | static int xenfs_get_sb(struct file_system_type *fs_type, | 124 | static int xenfs_mount(struct file_system_type *fs_type, |
124 | int flags, const char *dev_name, | 125 | int flags, const char *dev_name, |
125 | void *data, struct vfsmount *mnt) | 126 | void *data) |
126 | { | 127 | { |
127 | return get_sb_single(fs_type, flags, data, xenfs_fill_super, mnt); | 128 | return mount_single(fs_type, flags, data, xenfs_fill_super); |
128 | } | 129 | } |
129 | 130 | ||
130 | static struct file_system_type xenfs_type = { | 131 | static struct file_system_type xenfs_type = { |
131 | .owner = THIS_MODULE, | 132 | .owner = THIS_MODULE, |
132 | .name = "xenfs", | 133 | .name = "xenfs", |
133 | .get_sb = xenfs_get_sb, | 134 | .mount = xenfs_mount, |
134 | .kill_sb = kill_litter_super, | 135 | .kill_sb = kill_litter_super, |
135 | }; | 136 | }; |
136 | 137 | ||
diff --git a/drivers/xen/xenfs/xenbus.c b/drivers/xen/xenfs/xenbus.c index 3b39c3752e21..1c1236087f78 100644 --- a/drivers/xen/xenfs/xenbus.c +++ b/drivers/xen/xenfs/xenbus.c | |||
@@ -594,4 +594,5 @@ const struct file_operations xenbus_file_ops = { | |||
594 | .open = xenbus_file_open, | 594 | .open = xenbus_file_open, |
595 | .release = xenbus_file_release, | 595 | .release = xenbus_file_release, |
596 | .poll = xenbus_file_poll, | 596 | .poll = xenbus_file_poll, |
597 | .llseek = no_llseek, | ||
597 | }; | 598 | }; |