summaryrefslogtreecommitdiff
path: root/fs/bcachefs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/super.c')
-rw-r--r--fs/bcachefs/super.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c
index 6f76e8b185fd..ef8fb0dac003 100644
--- a/fs/bcachefs/super.c
+++ b/fs/bcachefs/super.c
@@ -2385,6 +2385,17 @@ static ssize_t reboot_test(struct kobject *k, struct kobj_attribute *attr,
kobj_attribute_write(reboot, reboot_test);
+int test_suspend2(void);
+
+static ssize_t suspend_test(struct kobject *k, struct kobj_attribute *attr,
+ const char *buffer, size_t size)
+{
+ test_suspend2();
+ return size;
+}
+
+kobj_attribute_write(suspend, suspend_test);
+
static void bcache_exit(void)
{
bch_debug_exit();
@@ -2416,6 +2427,7 @@ static int __init bcache_init(void)
&ksysfs_register.attr,
&ksysfs_register_quiet.attr,
&ksysfs_reboot.attr,
+ &ksysfs_suspend.attr,
NULL
};