diff options
| author | Xin LI <delphij@FreeBSD.org> | 2007-07-23 06:54:58 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2007-07-23 06:54:58 +0000 |
| commit | 7280082944ef2e1ee41fbd07bff636c065963c7b (patch) | |
| tree | cbbb954aab33a709541a9d4652d4565805f16fec | |
| parent | bcfac09734443a119fb84c078f89059f041527e9 (diff) | |
Notes
| -rw-r--r-- | sys/fs/tmpfs/tmpfs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index 993d3f9ed36d..69822b140728 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -268,7 +268,7 @@ tmpfs_mount(struct mount *mp, struct thread *td) mtx_init(&tmp->allnode_lock, "tmpfs allnode lock", NULL, MTX_DEF); tmp->tm_nodes_max = nodes; tmp->tm_nodes_inuse = 0; - tmp->tm_maxfilesize = get_swpgtotal() * PAGE_SIZE; + tmp->tm_maxfilesize = (cnt.v_page_count + get_swpgtotal()) * PAGE_SIZE; LIST_INIT(&tmp->tm_nodes_used); tmp->tm_pages_max = pages; |
