]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for BIO_DELETE on swap-backed md(4). In the case of BIO_DELETE
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 27 Jan 2011 16:10:25 +0000 (16:10 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 27 Jan 2011 16:10:25 +0000 (16:10 +0000)
commit4a13a769dcbd23e90ef8e77de9d40057a2065557
treea954dac4599546bce04d3776226bbf9912f7c4a8
parent21835e695a11ea58ee5c1ab996f54eb4ba9e001c
Add support for BIO_DELETE on swap-backed md(4). In the case of BIO_DELETE
covering the whole page, free the page. Otherwise, clear the region and
mark it clean. Not marking the page dirty could reinstantiate cleared
data, but it is allowed by BIO_DELETE specification and saves unneeded
write to swap.

Reviewed by: alc
Tested by: pho
MFC after: 2 weeks
sys/dev/md/md.c