diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-18 04:56:39 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-18 04:56:39 -0800 |
| commit | b75add94ae319a72f0eb31ac8482ac12057dce30 (patch) | |
| tree | 2544ff9d619aa305ddd82436e1c7e47c94e91550 /include | |
| parent | 7de09205dfa6911306464954015921fc90a9eafd (diff) | |
[PATCH] remove max_anon limit
From: Tim Hockin <thockin@sun.com>
Remove the max_anon via dynamically allocation. We also change the
idr_pre_get() interface to take a gfp mask, which should have always been
there.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fs.h | 1 | ||||
| -rw-r--r-- | include/linux/idr.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 4d46f5f8e48b..dd3186163c0d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1045,6 +1045,7 @@ struct super_block *sget(struct file_system_type *type, void *data); struct super_block *get_sb_pseudo(struct file_system_type *, char *, struct super_operations *ops, unsigned long); +void unnamed_dev_init(void); /* Alas, no aliases. Too much hassle with bringing module.h everywhere */ #define fops_get(fops) \ diff --git a/include/linux/idr.h b/include/linux/idr.h index 69652da724d1..b3a58338ed32 100644 --- a/include/linux/idr.h +++ b/include/linux/idr.h @@ -58,7 +58,7 @@ struct idr { */ void *idr_find(struct idr *idp, int id); -int idr_pre_get(struct idr *idp); +int idr_pre_get(struct idr *idp, unsigned gfp_mask); int idr_get_new(struct idr *idp, void *ptr); void idr_remove(struct idr *idp, int id); void idr_init(struct idr *idp); |
