diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-18 22:05:51 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-18 22:05:51 -0700 |
| commit | fdc519457a3d4e49e3f8e22d8ea4dae79194a3d2 (patch) | |
| tree | 75dc5c895f0d0f800b2b9a29ec48e5130c1fe187 /include/linux | |
| parent | 178036e36fbec128450e39314a5042bb8a9af941 (diff) | |
[PATCH] Increase number of dynamic inodes in procfs
From: Nathan Lynch <nathanl@austin.ibm.com>
On some larger ppc64 configurations /proc/device-tree is exhausting procfs'
dynamic (non-pid) inode range (16K). This patch makes the dynamic inode
range 0xf0000000-0xffffffff and changes the inode number allocator to use
the idr.c allocator for the first-fit allocations.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/proc_fs.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 9361a2b6856e..0b12bd800fd1 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h @@ -26,9 +26,6 @@ enum { /* Finally, the dynamically allocatable proc entries are reserved: */ -#define PROC_DYNAMIC_FIRST 4096 -#define PROC_NDYNAMIC 16384 - #define PROC_SUPER_MAGIC 0x9fa0 /* @@ -53,7 +50,7 @@ typedef int (write_proc_t)(struct file *file, const char __user *buffer, typedef int (get_info_t)(char *, char **, off_t, int); struct proc_dir_entry { - unsigned short low_ino; + unsigned int low_ino; unsigned short namelen; const char *name; mode_t mode; @@ -102,7 +99,7 @@ extern void remove_proc_entry(const char *name, struct proc_dir_entry *parent); extern struct vfsmount *proc_mnt; extern int proc_fill_super(struct super_block *,void *,int); -extern struct inode * proc_get_inode(struct super_block *, int, struct proc_dir_entry *); +extern struct inode *proc_get_inode(struct super_block *, unsigned int, struct proc_dir_entry *); extern int proc_match(int, const char *,struct proc_dir_entry *); |
