diff options
author | delphij <delphij@FreeBSD.org> | 2007-07-11 14:26:27 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-07-11 14:26:27 +0000 |
commit | ff9bf4b792638d7157d3edd6df71e2a8c02e5ba6 (patch) | |
tree | 7846bc16fbfcca0ddb40e6528c2589212c9f1c56 /sys/fs/tmpfs/tmpfs.h | |
parent | a0e02f86c06ab807051f8c40db4f3045d0dac429 (diff) | |
download | FreeBSD-src-ff9bf4b792638d7157d3edd6df71e2a8c02e5ba6.zip FreeBSD-src-ff9bf4b792638d7157d3edd6df71e2a8c02e5ba6.tar.gz |
MFp4: Make use of the kernel unit number allocation facility
for tmpfs nodes.
Submitted by: Mingyan Guo <guomingyan gmail com>
Approved by: re (tmpfs blanket)
Diffstat (limited to 'sys/fs/tmpfs/tmpfs.h')
-rw-r--r-- | sys/fs/tmpfs/tmpfs.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/tmpfs/tmpfs.h b/sys/fs/tmpfs/tmpfs.h index 3731342..9ef7731 100644 --- a/sys/fs/tmpfs/tmpfs.h +++ b/sys/fs/tmpfs/tmpfs.h @@ -288,10 +288,8 @@ struct tmpfs_mount { * of empty files and then simply removing them. */ ino_t tm_nodes_max; - /* Number of nodes currently allocated. This number only grows. - * When it reaches tm_nodes_max, no more new nodes can be allocated. - * Of course, the old, unused ones can be reused. */ - ino_t tm_nodes_last; + /* unrhdr used to allocate inode numbers */ + struct unrhdr * tm_ino_unr; /* Number of nodes currently that are in use. */ ino_t tm_nodes_inuse; |