diff --git a/sys/fs/nfsclient/nfs_clbio.c b/sys/fs/nfsclient/nfs_clbio.c index 37f824cb3752..7b58297ad87b 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 4ea192b14f60..8ff8266f6853 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 { /* diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index 92be17c0238f..3c12ea057ef1 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -214,7 +214,7 @@ nfs_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 { /*