]> xenbits.xensource.com Git - freebsd.git/commitdiff
vm_object_coalesce(): avoid extending any nosplit objects, not only
authorkib <kib@FreeBSD.org>
Sat, 7 Sep 2019 15:58:48 +0000 (15:58 +0000)
committerkib <kib@FreeBSD.org>
Sat, 7 Sep 2019 15:58:48 +0000 (15:58 +0000)
that which back tmpfs nodes.

Reviewed by: markj
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D21560

sys/vm/vm_object.c

index 10dd178b25157591b180c74c30e446b14027c229..b92da204cd1655c29cabeaa9ca39820444dac2d4 100644 (file)
@@ -2062,7 +2062,7 @@ vm_object_coalesce(vm_object_t prev_object, vm_ooffset_t prev_offset,
        VM_OBJECT_WLOCK(prev_object);
        if ((prev_object->type != OBJT_DEFAULT &&
            prev_object->type != OBJT_SWAP) ||
-           (prev_object->flags & OBJ_TMPFS_NODE) != 0) {
+           (prev_object->flags & OBJ_NOSPLIT) != 0) {
                VM_OBJECT_WUNLOCK(prev_object);
                return (FALSE);
        }