summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-03-25 16:38:23 +0000
committerAl Viro <viro@zeniv.linux.org.uk>2019-05-25 18:00:04 -0400
commit31d6d5ce53400d6dc58e29ddd8dc184b3ba89d66 (patch)
tree3d2a12d63794b5ab86295001c711d63591e71ffa /include
parentc80fa7c8301c10ad10d997b9e86b4aeac5923b3e (diff)
downloadlinux-31d6d5ce53400d6dc58e29ddd8dc184b3ba89d66.tar.bz2
vfs: Provide a mount_pseudo-replacement for the new mount API
Provide a function, init_pseudo(), that provides a common infrastructure for converting pseudo-filesystems that can never be mountable. [AV: once all users of mount_pseudo_xattr() get converted, it will be folded into pseudo_fs_get_tree()] Signed-off-by: David Howells <dhowells@redhat.com> cc: linux-fsdevel@vger.kernel.org
Diffstat (limited to 'include')
-rw-r--r--include/linux/pseudo_fs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/pseudo_fs.h b/include/linux/pseudo_fs.h
new file mode 100644
index 000000000000..eceda1d1407a
--- /dev/null
+++ b/include/linux/pseudo_fs.h
@@ -0,0 +1,16 @@
+#ifndef __LINUX_PSEUDO_FS__
+#define __LINUX_PSEUDO_FS__
+
+#include <linux/fs_context.h>
+
+struct pseudo_fs_context {
+ const struct super_operations *ops;
+ const struct xattr_handler **xattr;
+ const struct dentry_operations *dops;
+ unsigned long magic;
+};
+
+struct pseudo_fs_context *init_pseudo(struct fs_context *fc,
+ unsigned long magic);
+
+#endif