summaryrefslogtreecommitdiff
path: root/fs/bcachefs/super.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-03-14 17:07:50 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2016-08-28 19:15:21 -0800
commit698f07c5f146ec48e8df0d96e6acf61b11b03f0a (patch)
tree7d9e352a785899947ef3757c24fe82f9660bcdef /fs/bcachefs/super.c
parenteea28a8431add43276e978455141a7616f39da78 (diff)
suspend_test XXX
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
};