File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
tools/testing/selftests/filesystems/binderfs Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ enum binderfs_stats_mode {
58
58
struct binder_features {
59
59
bool oneway_spam_detection ;
60
60
bool extended_error ;
61
+ bool freeze_notification ;
61
62
};
62
63
63
64
static const struct constant_table binderfs_param_stats [] = {
@@ -74,6 +75,7 @@ static const struct fs_parameter_spec binderfs_fs_parameters[] = {
74
75
static struct binder_features binder_features = {
75
76
.oneway_spam_detection = true,
76
77
.extended_error = true,
78
+ .freeze_notification = true,
77
79
};
78
80
79
81
static inline struct binderfs_info * BINDERFS_SB (const struct super_block * sb )
@@ -608,6 +610,12 @@ static int init_binder_features(struct super_block *sb)
608
610
if (IS_ERR (dentry ))
609
611
return PTR_ERR (dentry );
610
612
613
+ dentry = binderfs_create_file (dir , "freeze_notification" ,
614
+ & binder_features_fops ,
615
+ & binder_features .freeze_notification );
616
+ if (IS_ERR (dentry ))
617
+ return PTR_ERR (dentry );
618
+
611
619
return 0 ;
612
620
}
613
621
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ static int __do_binderfs_test(struct __test_metadata *_metadata)
65
65
static const char * const binder_features [] = {
66
66
"oneway_spam_detection" ,
67
67
"extended_error" ,
68
+ "freeze_notification" ,
68
69
};
69
70
70
71
change_mountns (_metadata );
You can’t perform that action at this time.
0 commit comments