summaryrefslogtreecommitdiffstats
path: root/rust/helpers/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/fs.c')
-rw-r--r--rust/helpers/fs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/rust/helpers/fs.c b/rust/helpers/fs.c
new file mode 100644
index 000000000000..a75c96763372
--- /dev/null
+++ b/rust/helpers/fs.c
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/*
+ * Copyright (C) 2024 Google LLC.
+ */
+
+#include <linux/fs.h>
+
+struct file *rust_helper_get_file(struct file *f)
+{
+ return get_file(f);
+}