summaryrefslogtreecommitdiffstats
path: root/fs/netfs/main.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2022-03-01 15:25:00 +0000
committerDavid Howells <dhowells@redhat.com>2022-03-18 09:29:05 +0000
commitb900f4b89b4d44aa1a79111763b6dfab51e5e3af (patch)
treec00110e6589b8188ec73bb426102eae202967f56 /fs/netfs/main.c
parent16211268fcb36672a84359362c2fc2c4695b0fc4 (diff)
downloadlinux-b900f4b89b4d44aa1a79111763b6dfab51e5e3af.tar.gz
linux-b900f4b89b4d44aa1a79111763b6dfab51e5e3af.tar.bz2
linux-b900f4b89b4d44aa1a79111763b6dfab51e5e3af.zip
netfs: Split some core bits out into their own file
Split some core bits out into their own file. More bits will be added to this file later. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> cc: linux-cachefs@redhat.com Link: https://lore.kernel.org/r/164623006934.3564931.17932680017894039748.stgit@warthog.procyon.org.uk/ # v1 Link: https://lore.kernel.org/r/164678218407.1200972.1731208226140990280.stgit@warthog.procyon.org.uk/ # v2 Link: https://lore.kernel.org/r/164692920944.2099075.11990502173226013856.stgit@warthog.procyon.org.uk/ # v3
Diffstat (limited to 'fs/netfs/main.c')
-rw-r--r--fs/netfs/main.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/fs/netfs/main.c b/fs/netfs/main.c
new file mode 100644
index 000000000000..068568702957
--- /dev/null
+++ b/fs/netfs/main.c
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/* Miscellaneous bits for the netfs support library.
+ *
+ * Copyright (C) 2022 Red Hat, Inc. All Rights Reserved.
+ * Written by David Howells (dhowells@redhat.com)
+ */
+
+#include <linux/module.h>
+#include <linux/export.h>
+#include "internal.h"
+#define CREATE_TRACE_POINTS
+#include <trace/events/netfs.h>
+
+MODULE_DESCRIPTION("Network fs support");
+MODULE_AUTHOR("Red Hat, Inc.");
+MODULE_LICENSE("GPL");
+
+unsigned netfs_debug;
+module_param_named(debug, netfs_debug, uint, S_IWUSR | S_IRUGO);
+MODULE_PARM_DESC(netfs_debug, "Netfs support debugging mask");