freebsd-dev/sys/fs/tmpfs
Jaakko Heinonen 189ee6be40 - Change the type of nodes_max to u_int and use "%u" format string to
convert its value. [1]
- Set default tm_nodes_max to min(pages + 3, UINT32_MAX). It's more
  reasonable than the old four nodes per page (with page size 4096) because
  non-empty regular files always use at least one page. This fixes possible
  overflow in the calculation. [2]
- Don't allow more than tm_nodes_max nodes allocated in tmpfs_alloc_node().

PR:		kern/138367
Suggested by:	bde [1], Gleb Kurtsou [2]
Approved by:	trasz (mentor)
2010-01-20 16:56:20 +00:00
..
tmpfs_fifoops.c Reflect license change of NetBSD code. 2008-09-03 18:53:48 +00:00
tmpfs_fifoops.h Reflect license change of NetBSD code. 2008-09-03 18:53:48 +00:00
tmpfs_subr.c - Change the type of nodes_max to u_int and use "%u" format string to 2010-01-20 16:56:20 +00:00
tmpfs_vfsops.c - Change the type of nodes_max to u_int and use "%u" format string to 2010-01-20 16:56:20 +00:00
tmpfs_vnops.c Add locking around access to parent node, and bail out when the parent 2009-10-11 07:03:56 +00:00
tmpfs_vnops.h Reflect license change of NetBSD code. 2008-09-03 18:53:48 +00:00
tmpfs.h - Fix some style bugs in tmpfs_mount(). [1] 2010-01-13 14:17:21 +00:00