summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2009-05-28 18:11:09 +0000
committeralc <alc@FreeBSD.org>2009-05-28 18:11:09 +0000
commit87880e35a7a715866ff77b50f7581b1cb16b8adf (patch)
treee84e5baf260813aebb91106ec585dda027289ad2 /sys/fs
parentaf6fb4f3d2a2950c2a2c95bc3148ee16510149de (diff)
downloadFreeBSD-src-87880e35a7a715866ff77b50f7581b1cb16b8adf.zip
FreeBSD-src-87880e35a7a715866ff77b50f7581b1cb16b8adf.tar.gz
Make *getpages()s' assertion on the state of each page's dirty bits
stricter.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nfsclient/nfs_clbio.c2
-rw-r--r--sys/fs/smbfs/smbfs_io.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/nfsclient/nfs_clbio.c b/sys/fs/nfsclient/nfs_clbio.c
index 37f824c..7b58297 100644
--- a/sys/fs/nfsclient/nfs_clbio.c
+++ b/sys/fs/nfsclient/nfs_clbio.c
@@ -311,7 +311,7 @@ ncl_getpages(struct vop_getpages_args *ap)
*/
m->valid = 0;
vm_page_set_valid(m, 0, size - toff);
- KASSERT((m->dirty & vm_page_bits(0, size - toff)) == 0,
+ KASSERT(m->dirty == 0,
("nfs_getpages: page %p is dirty", m));
} else {
/*
diff --git a/sys/fs/smbfs/smbfs_io.c b/sys/fs/smbfs/smbfs_io.c
index 4ea192b..8ff8266 100644
--- a/sys/fs/smbfs/smbfs_io.c
+++ b/sys/fs/smbfs/smbfs_io.c
@@ -525,7 +525,7 @@ smbfs_getpages(ap)
*/
m->valid = 0;
vm_page_set_valid(m, 0, size - toff);
- KASSERT((m->dirty & vm_page_bits(0, size - toff)) == 0,
+ KASSERT(m->dirty == 0,
("smbfs_getpages: page %p is dirty", m));
} else {
/*
OpenPOWER on IntegriCloud