[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#666747: kfreebsd-image-9-amd64: "No space left on device" on /run



Attached is a simpler fix for this, proposed upstream.  Please try it...

The patch should be good for both kfreebsd-8 and kfreebsd-9.

Thanks,
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
--- head/sys/fs/tmpfs/tmpfs.h	2011/02/13 14:46:39	218640
+++ head/sys/fs/tmpfs/tmpfs.h	2011/11/21 20:26:22	227802
@@ -502,11 +502,8 @@
 static __inline size_t
 tmpfs_mem_info(void)
 {
-	size_t size;
 
-	size = swap_pager_avail + cnt.v_free_count + cnt.v_inactive_count;
-	size -= size > cnt.v_wire_count ? cnt.v_wire_count : size;
-	return size;
+	return (swap_pager_avail + cnt.v_free_count + cnt.v_cache_count);
 }
 
 /* Returns the maximum size allowed for a tmpfs file system.  This macro

Reply to: