Page MenuHomeFreeBSD

D43010.id131293.diff
No OneTemporary

D43010.id131293.diff

diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
--- a/sys/fs/tmpfs/tmpfs_subr.c
+++ b/sys/fs/tmpfs/tmpfs_subr.c
@@ -290,6 +290,8 @@
if (tm == NULL || vm_pager_has_page(obj, pindex, NULL, NULL) ||
tm->tm_pages_max == 0)
return (true);
+ if (tm->tm_pages_max == ULONG_MAX)
+ return (tmpfs_mem_avail() >= 1);
return (tm->tm_pages_max > atomic_load_long(&tm->tm_pages_used));
}

File Metadata

Mime Type
text/plain
Expires
Tue, May 26, 10:04 PM (11 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33539504
Default Alt Text
D43010.id131293.diff (411 B)

Event Timeline