Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2186362ybi; Thu, 4 Jul 2019 06:32:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeQLiV+SWuyCrsNx9Nb3MuCgBa1oUGNEjK/0J0pc6UR5q9HRPSSp+x5d4YOetC92hj/RWi X-Received: by 2002:a17:90a:2247:: with SMTP id c65mr19187392pje.24.1562247142135; Thu, 04 Jul 2019 06:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562247142; cv=none; d=google.com; s=arc-20160816; b=kI+k+teEXXvJP5MMRABse025ipTJG19p68RlwRcT82iiPTdr5cE1rXopzrc/MIBXua runxsFSvPpaeEd5QJuMPwrSZlNOeeU36QVbSm/HRYq3V+I2KUUhFZq1YnQJbKrp6URu9 A7sN6VZ3VxgAgHqcxSw7tB9LX5cJOFv1jcu4RbV40c5iJ1HJTEUmhoKsvJiXDrRiTV3y NVDCAt5ezj7X+91K1UByZCBSWAvX/VK/8eJvLFelwpQ3qbZeKCb5v/TKKR5GtoS6X3BK AIHa1v7EBSlQjHfR4ACoBoe3SzZIiu0eDHWcERY15LeeL4mlgCZaBmQ0IE1cgZjZHuf5 lkJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=T7rWNTi1E7hTeWQY3QnrdEdcklqFz+mTRT0ti6i3yOE=; b=C5uIYbxbK3mccJrIgoSx2EiRcBSOZlXarOnVWtfHK4e9wTPmTQ+j1PWKYwlNzEKgG8 Pn+BhpArHsjmp+dKrpOT9K6dwOiI6j0OInDv7cBYfkkoZghhUV3wEHNUwZER7BXpoX48 kKTZKBvqDPVekxL8qAyuI+luAVoxtPS/jwRhK0F2WGjGi5EEGU6VvLRF3ojbyJ2WVJ9+ 6IepLadf29PnbtePUUSqHJlmULMpuZ3dYW7z9+HfYj7Ei51OfNKiPOFAysLZgJ1EL/WF CuRTgVip9h2cDNkDjhElQ9Qskj0fybFpfF4eAgxtOA9AlgPv6eR8XVAm8HxOc2gVYnBO Py5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sXnIoQC+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q42si5328934pjc.103.2019.07.04.06.32.06; Thu, 04 Jul 2019 06:32:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sXnIoQC+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727314AbfGDNbA (ORCPT + 99 others); Thu, 4 Jul 2019 09:31:00 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46781 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbfGDNbA (ORCPT ); Thu, 4 Jul 2019 09:31:00 -0400 Received: by mail-pl1-f196.google.com with SMTP id c2so1527754plz.13 for ; Thu, 04 Jul 2019 06:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=T7rWNTi1E7hTeWQY3QnrdEdcklqFz+mTRT0ti6i3yOE=; b=sXnIoQC+a7Tp+ha4YF6+8hVuxOYjc/an3avVApFlkpwWWfbXtZgkdZ6lUnMCqAyxza JtWvhS5buGGMbRS5wPpm0u/kBRoCElF6LHAqyef3Qd2o+EpxepLOU8zQF3S4DkC7Wz0o I1k1xme567aV15OHMlTzldlKgejxfdjqkqFhz6Mt5UlBXGMIU2CEiq94i3rw3VPMikuU pgDlIJswlcJ0Pwpoz1RlVhN28GHwlUq0L3zu6aQpcNET8QspamP3MKPK6jH8F1bSLJnp 16CTZE0WYpHjyF4EYVZZ8D6AnONWtWRnfwfWa44SUA2Whg3FpI5Xd23f/QxEZ7EauQCC F/ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=T7rWNTi1E7hTeWQY3QnrdEdcklqFz+mTRT0ti6i3yOE=; b=NYPNWQvJXwkhNk2k9jQc+TWDKWANj+4loFVLxKfdPpTs/Y9rozLniiNgDHtKlO+Tpr uCjahW+27ZD9xyMv1rws3d+m9G9ZFOfZFd08yuDB/bF8Mj9r8j+jfuijqfNpRSmYBryD OsgWxPHJMjaZPfNTjoqTDvV+mYB4W4mpUmsf+ZfO1GJt7fjOge1e2dj/6O5Rxpf89JHa t8qYIPHEMfRj6OkTzigV7xDZzUsImQAjS9N4RN5P8mCDI+N9d7lkn1JvNeYwEWNWg/52 T0Vv77Go8nRLhgHB8PkCrGwG2rvVStzpW5hUa538RwFL4VYqsNyrRfMemy5cZndkHOxg naNg== X-Gm-Message-State: APjAAAXZyZiVeK798d/UhOklAEUFBtZa1WhMKAiNFx4w+xkugIjc2ovC x6PU0i2KvAXuSngZaaJlhtM= X-Received: by 2002:a17:902:70c3:: with SMTP id l3mr49317115plt.248.1562247059375; Thu, 04 Jul 2019 06:30:59 -0700 (PDT) Received: from localhost.localdomain.localdomain ([2408:823c:c11:648:b8c3:8577:bf2f:2]) by smtp.gmail.com with ESMTPSA id h26sm12517367pfq.64.2019.07.04.06.30.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 04 Jul 2019 06:30:58 -0700 (PDT) From: Pengfei Li To: akpm@linux-foundation.org, peterz@infradead.org, urezki@gmail.com Cc: rpenyaev@suse.de, mhocko@suse.com, guro@fb.com, aryabinin@virtuozzo.com, rppt@linux.ibm.com, mingo@kernel.org, rick.p.edgecombe@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Pengfei Li Subject: [PATCH v3 0/1] mm/vmalloc.c: improve readability and rewrite vmap_area Date: Thu, 4 Jul 2019 21:30:39 +0800 Message-Id: <20190704133040.5623-1-lpf.vector@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2 -> v3: * patch 1-4: Abandoned * patch 5: - Eliminate "flags" (suggested by Uladzislau Rezki) - Based on https://lkml.org/lkml/2019/6/6/455 and https://lkml.org/lkml/2019/7/3/661 v1 -> v2: * patch 3: Rename __find_vmap_area to __search_va_in_busy_tree instead of __search_va_from_busy_tree. * patch 5: Add motivation and necessary test data to the commit message. * patch 5: Let va->flags use only some low bits of va_start instead of completely overwriting va_start. The current implementation of struct vmap_area wasted space. After applying this commit, sizeof(struct vmap_area) has been reduced from 11 words to 8 words. Pengfei Li (1): Modify struct vmap_area to reduce its size include/linux/vmalloc.h | 20 +++++++++++++------- mm/vmalloc.c | 24 ++++++++++-------------- 2 files changed, 23 insertions(+), 21 deletions(-) -- 2.21.0