diff options
author | kib <kib@FreeBSD.org> | 2010-12-29 22:26:49 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-12-29 22:26:49 +0000 |
commit | f112887cab1c7c8017f13e95138e3c4d33992d78 (patch) | |
tree | 85e3ca190990ebd95923f075fd1424022c5dee91 /sys/vm/vm_object.c | |
parent | 9af03ea4fc729f0a666186052c3a2a6bedc431ca (diff) | |
download | FreeBSD-src-f112887cab1c7c8017f13e95138e3c4d33992d78.zip FreeBSD-src-f112887cab1c7c8017f13e95138e3c4d33992d78.tar.gz |
Remove OBJ_CLEANING flag. The vfs_setdirty_locked_object() is the only
consumer of the flag, and it used the flag because OBJ_MIGHTBEDIRTY
was cleared early in vm_object_page_clean, before the cleaning pass
was done. This is no longer true after r216799.
Moreover, since OBJ_CLEANING is a flag, and not the counter, it could
be reset too prematurely when parallel vm_object_page_clean() are
performed.
Reviewed by: alc (as a part of the bigger patch)
MFC after: 1 month (after r216799 is merged)
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r-- | sys/vm/vm_object.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index b7ddf60..e34c3e9 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -809,8 +809,6 @@ vm_object_page_clean(vm_object_t object, vm_pindex_t start, vm_pindex_t end, tend = (end == 0) ? object->size : end; - vm_object_set_flag(object, OBJ_CLEANING); - /* * Make the page read-only so we can then clear the object flags. * @@ -849,7 +847,6 @@ rescan: VOP_FSYNC(vp, (pagerflags & VM_PAGER_PUT_SYNC) ? MNT_WAIT : 0); #endif - vm_object_clear_flag(object, OBJ_CLEANING); if (clearobjflags && start == 0 && tend == object->size) vm_object_clear_flag(object, OBJ_MIGHTBEDIRTY); } |