aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-05-21 03:22:17 -0400
committerDavid Howells <dhowells@redhat.com>2019-05-21 03:22:17 -0400
commit4de1e3a8ecec3432ed6ed7da0b90b34750358899 (patch)
tree31f495c9a0d2507cc4f3158a580f22d7f6f2fe8c /mm
parent48b48750c3f9f91a4e340d0f796734ddd178ad9d (diff)
z3fold: don't bother with dentry_operations
Don't bother with dentry_operations as no dentry is ever allocated. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'mm')
-rw-r--r--mm/z3fold.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/z3fold.c b/mm/z3fold.c
index 1ffecd6333e5..0b14daf930a8 100644
--- a/mm/z3fold.c
+++ b/mm/z3fold.c
@@ -242,11 +242,7 @@ static inline void free_handle(unsigned long handle)
242static struct dentry *z3fold_do_mount(struct file_system_type *fs_type, 242static struct dentry *z3fold_do_mount(struct file_system_type *fs_type,
243 int flags, const char *dev_name, void *data) 243 int flags, const char *dev_name, void *data)
244{ 244{
245 static const struct dentry_operations ops = { 245 return mount_pseudo(fs_type, "z3fold:", NULL, NULL, 0x33);
246 .d_dname = simple_dname,
247 };
248
249 return mount_pseudo(fs_type, "z3fold:", NULL, &ops, 0x33);
250} 246}
251 247
252static struct file_system_type z3fold_fs = { 248static struct file_system_type z3fold_fs = {