File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ extern unsigned fscache_defer_create;
82
82
extern unsigned fscache_debug ;
83
83
extern struct kobject * fscache_root ;
84
84
85
+ extern int fscache_wait_bit (void * );
86
+ extern int fscache_wait_bit_interruptible (void * );
87
+
85
88
/*
86
89
* fsc-proc.c
87
90
*/
Original file line number Diff line number Diff line change @@ -102,3 +102,23 @@ static void __exit fscache_exit(void)
102
102
}
103
103
104
104
module_exit (fscache_exit );
105
+
106
+ /*
107
+ * wait_on_bit() sleep function for uninterruptible waiting
108
+ */
109
+ int fscache_wait_bit (void * flags )
110
+ {
111
+ schedule ();
112
+ return 0 ;
113
+ }
114
+ EXPORT_SYMBOL (fscache_wait_bit );
115
+
116
+ /*
117
+ * wait_on_bit() sleep function for interruptible waiting
118
+ */
119
+ int fscache_wait_bit_interruptible (void * flags )
120
+ {
121
+ schedule ();
122
+ return signal_pending (current );
123
+ }
124
+ EXPORT_SYMBOL (fscache_wait_bit_interruptible );
You can’t perform that action at this time.
0 commit comments