diff options
author | alc <alc@FreeBSD.org> | 2006-07-21 06:40:29 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2006-07-21 06:40:29 +0000 |
commit | d0e4b9565d4fdb1bae61d31013f9f75e4498d602 (patch) | |
tree | 97d1eb7ef22e85728d524efb5dcdf0ec2d58a0af /sys/kern | |
parent | 51bab356f57dc9ab730b9fc77fc11ee8039d2a02 (diff) | |
download | FreeBSD-src-d0e4b9565d4fdb1bae61d31013f9f75e4498d602.zip FreeBSD-src-d0e4b9565d4fdb1bae61d31013f9f75e4498d602.tar.gz |
Eliminate OBJ_WRITEABLE. It hasn't been used in a long time.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_bio.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 0e43072..410287a 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -2285,8 +2285,7 @@ vfs_setdirty(struct buf *bp) /* * We qualify the scan for modified pages on whether the - * object has been flushed yet. The OBJ_WRITEABLE flag - * is not cleared simply by protecting pages off. + * object has been flushed yet. */ if ((bp->b_flags & B_VMIO) == 0) @@ -2294,11 +2293,6 @@ vfs_setdirty(struct buf *bp) object = bp->b_pages[0]->object; VM_OBJECT_LOCK(object); - if ((object->flags & OBJ_WRITEABLE) && !(object->flags & OBJ_MIGHTBEDIRTY)) - printf("Warning: object %p writeable but not mightbedirty\n", object); - if (!(object->flags & OBJ_WRITEABLE) && (object->flags & OBJ_MIGHTBEDIRTY)) - printf("Warning: object %p mightbedirty but not writeable\n", object); - if (object->flags & (OBJ_MIGHTBEDIRTY|OBJ_CLEANING)) { vm_offset_t boffset; vm_offset_t eoffset; |