aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/generic.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2009-01-13 05:53:48 -0500
committerAlexey Dobriyan <adobriyan@gmail.com>2009-03-30 17:13:12 -0400
commit1681bc30f272dd2fe347b90468791b05c7044f03 (patch)
tree72a37dcde9c2536594d3eab4deca8997d34d39d5 /fs/proc/generic.c
parente1c502482853f84606928f5a2f2eb6da1993cda1 (diff)
proc: move fs/proc/inode-alloc.txt comment into a source file
so that people will realize that it exists and can update it as needed. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r--fs/proc/generic.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 5d2989e9dcc1..8c68bbe2b61e 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -307,6 +307,21 @@ static DEFINE_SPINLOCK(proc_inum_lock); /* protects the above */
307/* 307/*
308 * Return an inode number between PROC_DYNAMIC_FIRST and 308 * Return an inode number between PROC_DYNAMIC_FIRST and
309 * 0xffffffff, or zero on failure. 309 * 0xffffffff, or zero on failure.
310 *
311 * Current inode allocations in the proc-fs (hex-numbers):
312 *
313 * 00000000 reserved
314 * 00000001-00000fff static entries (goners)
315 * 001 root-ino
316 *
317 * 00001000-00001fff unused
318 * 0001xxxx-7fffxxxx pid-dir entries for pid 1-7fff
319 * 80000000-efffffff unused
320 * f0000000-ffffffff dynamic entries
321 *
322 * Goal:
323 * Once we split the thing into several virtual filesystems,
324 * we will get rid of magical ranges (and this comment, BTW).
310 */ 325 */
311static unsigned int get_inode_number(void) 326static unsigned int get_inode_number(void)
312{ 327{