Date: Sun, 2 May 2010 17:33:46 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/fs/tmpfs tmpfs_vnops.c src/sys/kern vfs_bio.c src/sys/vm vm_fault.c vm_page.c Message-ID: <201005021736.o42HajcY052000@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
alc 2010-05-02 17:33:46 UTC FreeBSD src repository Modified files: sys/fs/tmpfs tmpfs_vnops.c sys/kern vfs_bio.c sys/vm vm_fault.c vm_page.c Log: SVN rev 207530 on 2010-05-02 17:33:46Z by alc It makes no sense for vm_page_sleep_if_busy()'s helper, vm_page_sleep(), to unconditionally set PG_REFERENCED on a page before sleeping. In many cases, it's perfectly ok for the page to disappear, i.e., be reclaimed by the page daemon, before the caller to vm_page_sleep() is reawakened. Instead, we now explicitly set PG_REFERENCED in those cases where having the page persist until the caller is awakened is clearly desirable. Note, however, that setting PG_REFERENCED on the page is still only a hint, and not a guarantee that the page should persist. Revision Changes Path 1.35 +27 -3 src/sys/fs/tmpfs/tmpfs_vnops.c 1.572 +10 -1 src/sys/kern/vfs_bio.c 1.270 +6 -0 src/sys/vm/vm_fault.c 1.387 +16 -9 src/sys/vm/vm_page.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005021736.o42HajcY052000>