]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The vm_pager_page_unswapped() pager op is only implemented for the
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 6 Aug 2014 19:34:03 +0000 (19:34 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 6 Aug 2014 19:34:03 +0000 (19:34 +0000)
commit385b4265fcad6135f838ff171d504e9883acea4e
tree187fbb1f4f6111da08e21ecb887771103e2282bd
parentfaaf5447600bcb498c0df6363248fd5b8c9ee93e
The vm_pager_page_unswapped() pager op is only implemented for the
swap pager.  Swap pager uses a private mutex to protect swap metadata,
and does not rely on the vm object lock to ensure integrity of it.

Weaken the requirement for the vm object lock by only asserting locked
object in vm_pager_page_unswapped(), instead of locked exclusively.

Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/vm/vm_pager.h