Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Provide a default...
details: https://anonhg.NetBSD.org/src/rev/5fafcae42af8
branches: trunk
changeset: 465680:5fafcae42af8
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Dec 01 20:26:05 2019 +0000
description:
Provide a default ptob() implementation
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/arc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r a2b4846e4117 -r 5fafcae42af8 external/cddl/osnet/dist/uts/common/fs/zfs/arc.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c Sun Dec 01 20:25:31 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c Sun Dec 01 20:26:05 2019 +0000
@@ -280,6 +280,9 @@
#ifndef btop
#define btop(x) ((x) / PAGE_SIZE)
#endif
+#ifndef ptob
+#define ptob(x) ((x) * PAGE_SIZE)
+#endif
//#define needfree (uvmexp.free < uvmexp.freetarg ? uvmexp.freetarg : 0)
#define buf_init arc_buf_init
#define freemem uvmexp.free
Home |
Main Index |
Thread Index |
Old Index