[Glibc-bsd-commits] r4180 - in trunk/kfreebsd-8/debian: . patches

Robert Millan rmh at alioth.debian.org
Mon Apr 9 18:22:11 UTC 2012


Author: rmh
Date: 2012-04-09 18:22:10 +0000 (Mon, 09 Apr 2012)
New Revision: 4180

Added:
   trunk/kfreebsd-8/debian/patches/improve_tmpfs_mem_info.diff
Modified:
   trunk/kfreebsd-8/debian/changelog
   trunk/kfreebsd-8/debian/patches/series
Log:
improve_tmpfs_mem_info.diff: Cherry-pick tmpfs allocation from 9-STABLE.  (Closes: #666747)

Modified: trunk/kfreebsd-8/debian/changelog
===================================================================
--- trunk/kfreebsd-8/debian/changelog	2012-04-09 08:57:22 UTC (rev 4179)
+++ trunk/kfreebsd-8/debian/changelog	2012-04-09 18:22:10 UTC (rev 4180)
@@ -1,3 +1,10 @@
+kfreebsd-8 (8.3~svn232634-2) UNRELEASED; urgency=low
+
+  * improve_tmpfs_mem_info.diff: Cherry-pick tmpfs allocation from 9-
+    STABLE.  (Closes: #666747)
+
+ -- Robert Millan <rmh at debian.org>  Mon, 09 Apr 2012 20:21:58 +0200
+
 kfreebsd-8 (8.3~svn232634-1) experimental; urgency=low
 
   * New upstream snapshot.

Added: trunk/kfreebsd-8/debian/patches/improve_tmpfs_mem_info.diff
===================================================================
--- trunk/kfreebsd-8/debian/patches/improve_tmpfs_mem_info.diff	                        (rev 0)
+++ trunk/kfreebsd-8/debian/patches/improve_tmpfs_mem_info.diff	2012-04-09 18:22:10 UTC (rev 4180)
@@ -0,0 +1,21 @@
+
+Cherry-pick from 9-STABLE (SVN rev 233769).
+
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666747
+http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/155411
+
+--- a/sys/fs/tmpfs/tmpfs.h
++++ b/sys/fs/tmpfs/tmpfs.h
+@@ -483,11 +483,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

Modified: trunk/kfreebsd-8/debian/patches/series
===================================================================
--- trunk/kfreebsd-8/debian/patches/series	2012-04-09 08:57:22 UTC (rev 4179)
+++ trunk/kfreebsd-8/debian/patches/series	2012-04-09 18:22:10 UTC (rev 4180)
@@ -8,6 +8,7 @@
 mk_kernel_symbols.diff
 
 # Other patches that might or might not be mergeable
+improve_tmpfs_mem_info.diff
 001_misc.diff
 002_maxpathlen.diff
 003_glibc_dev_aicasm.diff




More information about the Glibc-bsd-commits mailing list