diff options
Diffstat (limited to 'fs/fscache/main.c')
-rw-r--r-- | fs/fscache/main.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fs/fscache/main.c b/fs/fscache/main.c index 48b79d2deac1..4de41b597499 100644 --- a/fs/fscache/main.c +++ b/fs/fscache/main.c | |||
@@ -102,3 +102,23 @@ static void __exit fscache_exit(void) | |||
102 | } | 102 | } |
103 | 103 | ||
104 | module_exit(fscache_exit); | 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); | ||