]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix overflow, which was causing endless loops when 32bit machine had more
authorPawel Jakub Dawidek <pjd@FreeBSD.org>
Fri, 13 Apr 2007 18:50:03 +0000 (18:50 +0000)
committerPawel Jakub Dawidek <pjd@FreeBSD.org>
Fri, 13 Apr 2007 18:50:03 +0000 (18:50 +0000)
commitbd59d85850ba6ac17ae35d2df09c75d21c356b1c
treefc3f74bb8d0491670d361e1974fa56173cbe3d01
parent7c275b458ac5719fac3cd239b02f6c9758705fdd
Fix overflow, which was causing endless loops when 32bit machine had more
than 2GB of RAM. This was because our physmem is long and 'physmem*PAGESIZE'
can be negative for more than 2GB of memory.

Reported by: Andrey V. Elsukov <bu7cher@yandex.ru>

It is not yet tested by Andrey, so there can be other problems, but this
was definiately a bug, so I'm committing a fix now.
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c
sys/contrib/opensolaris/uts/common/fs/zfs/arc.c
sys/contrib/opensolaris/uts/common/fs/zfs/dbuf.c