Module Name:    othersrc
Committed By:   ad
Date:           Fri Apr 10 22:03:16 UTC 2009

Modified Files:
        othersrc/zfs/external/cddl/osnet/dist/uts/common/fs/zfs: arc.c

Log Message:
Fix btop(). Noted by sim...@.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
    othersrc/zfs/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/zfs/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c
diff -u othersrc/zfs/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c:1.2 othersrc/zfs/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c:1.3
--- othersrc/zfs/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c:1.2	Thu Mar 26 21:50:47 2009
+++ othersrc/zfs/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c	Fri Apr 10 22:03:16 2009
@@ -135,7 +135,7 @@
 
 #ifdef __NetBSD__
 #include <uvm/uvm.h>
-#define	btop(x)		((x) * PAGE_SIZE)
+#define	btop(x)		((x) / PAGE_SIZE)
 #define	needfree	(uvmexp.free < uvmexp.freetarg ? uvmexp.freetarg : 0)
 #define	buf_init	arc_buf_init
 #define	freemem		uvmexp.free

Reply via email to