From 4f49b435c8de1168a6c1d83befa65448cb166a37 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 7 Sep 2019 15:58:48 +0000 Subject: [PATCH] vm_object_coalesce(): avoid extending any nosplit objects, not only that which back tmpfs nodes. Reviewed by: markj MFC after: 1 week Differential revision: https://reviews.freebsd.org/D21560 --- sys/vm/vm_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 10dd178b2515..b92da204cd16 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -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); }