Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140203
b: refs/heads/master
c: 2868cbe
h: refs/heads/master
i:
  140201: 986f7f3
  140199: cf86d9a
v: v3
  • Loading branch information
David Howells committed Apr 3, 2009
1 parent 85a9350 commit c8ed5dd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 726dd7ff10c217dd74329c94643dc8ebea27334b
refs/heads/master: 2868cbea72dc89ae0eb17693596b1dedaafff1c5
3 changes: 3 additions & 0 deletions trunk/fs/fscache/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ extern unsigned fscache_defer_create;
extern unsigned fscache_debug;
extern struct kobject *fscache_root;

extern int fscache_wait_bit(void *);
extern int fscache_wait_bit_interruptible(void *);

/*
* fsc-proc.c
*/
Expand Down
20 changes: 20 additions & 0 deletions trunk/fs/fscache/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,23 @@ static void __exit fscache_exit(void)
}

module_exit(fscache_exit);

/*
* wait_on_bit() sleep function for uninterruptible waiting
*/
int fscache_wait_bit(void *flags)
{
schedule();
return 0;
}
EXPORT_SYMBOL(fscache_wait_bit);

/*
* wait_on_bit() sleep function for interruptible waiting
*/
int fscache_wait_bit_interruptible(void *flags)
{
schedule();
return signal_pending(current);
}
EXPORT_SYMBOL(fscache_wait_bit_interruptible);

0 comments on commit c8ed5dd

Please sign in to comment.