main.c (f1615bbe9be4def59c3b3eaddb60722efeed16c2) main.c (743162013d40ca612b4cb53d3a200dff2d9ab26e)
1/* General filesystem local caching manager
2 *
3 * Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 183 unchanged lines hidden (view full) ---

192 destroy_workqueue(fscache_op_wq);
193 destroy_workqueue(fscache_object_wq);
194 pr_notice("Unloaded\n");
195}
196
197module_exit(fscache_exit);
198
199/*
1/* General filesystem local caching manager
2 *
3 * Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 183 unchanged lines hidden (view full) ---

192 destroy_workqueue(fscache_op_wq);
193 destroy_workqueue(fscache_object_wq);
194 pr_notice("Unloaded\n");
195}
196
197module_exit(fscache_exit);
198
199/*
200 * wait_on_bit() sleep function for uninterruptible waiting
201 */
202int fscache_wait_bit(void *flags)
203{
204 schedule();
205 return 0;
206}
207
208/*
209 * wait_on_bit() sleep function for interruptible waiting
210 */
211int fscache_wait_bit_interruptible(void *flags)
212{
213 schedule();
214 return signal_pending(current);
215}
216
217/*
218 * wait_on_atomic_t() sleep function for uninterruptible waiting
219 */
220int fscache_wait_atomic_t(atomic_t *p)
221{
222 schedule();
223 return 0;
224}
200 * wait_on_atomic_t() sleep function for uninterruptible waiting
201 */
202int fscache_wait_atomic_t(atomic_t *p)
203{
204 schedule();
205 return 0;
206}