Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp809690ybi; Fri, 12 Jul 2019 05:03:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjx6FFLjBQ+KGheWK0O4gRYhLKJUyV8C1fN+JvRMRG1Oq+4hVj+UkTdFPdvA7EKdwe5CRe X-Received: by 2002:a65:430b:: with SMTP id j11mr10183104pgq.383.1562933003620; Fri, 12 Jul 2019 05:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562933003; cv=none; d=google.com; s=arc-20160816; b=vpcs1e8h8ZDArpG7li3d5CvThAhoJn1aG1UHQKvu3RQowihFjThI/far1eIXmSi5bj yFPqM86f8GwfaX5d+ZG0lEdOnN7EkkpI4OcdQNFrstnXpd2TBJvC5CIOifSbjkzLvgBG aE1GTu5Tit3gZyhZx8tAeLpHga2J3ovNc8uhRB+hzlACVJJxrLB02iKTNkppujlcm9Z0 q1tzs54EH7q5dgvcrXSsr1R/CK0/7WB+aUNctp98SpgWos8Kjd0fxWoGERJgMIj7KLwO NCFmk7KCkYNwtZ7gA9jrxdeZ80tR7iKdOpVhPgCFxdG/Z0um1K8sGoKhUR/Mn0WKWg1h 4Y9g== 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=38IvB5KypHDAuaY3YawsJEBcvuco56ouTYCrEb+HEU0=; b=njvRxoV0l/IUHhQ6TXthpNwPY7p+wyyKOxnWDzjsz2xtAsNKArcKEo7BdpyJPYpMNs PBmdMi6u6BxJNHm+nEpNC+m9LIinpOWiyla9Q3CxiCS6Xddl9L5VWWztv0I9GgsAeZH9 iBl7txc+OmQTNDl94ZDAH62lLOY4aKcASFCtKXTv+Ybr3TYNy+6qjnBzj1x8e9RAnH5m oUxnvVMFks7so9qy0gd9vj/OsHts/DEsN+VuX+gzAOmsoDTowQ//ED2ZmHw9VWoTg6Bz 3oy79bLXUTgmnB5a9b/mu5mPUorbBYXzrnO+yRSsWd+amXgAi5uasDftakVr/T42+bKW xXiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mZ6PnB60; 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 q1si7388388pll.324.2019.07.12.05.03.07; Fri, 12 Jul 2019 05:03:23 -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=mZ6PnB60; 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 S1726724AbfGLMCe (ORCPT + 99 others); Fri, 12 Jul 2019 08:02:34 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:47009 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726250AbfGLMCe (ORCPT ); Fri, 12 Jul 2019 08:02:34 -0400 Received: by mail-pf1-f194.google.com with SMTP id c73so4212289pfb.13 for ; Fri, 12 Jul 2019 05:02:33 -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=38IvB5KypHDAuaY3YawsJEBcvuco56ouTYCrEb+HEU0=; b=mZ6PnB60as+zd8jQQHihMl6Lq71efQ8gvN2pJtswPVRzB6N/hPqe6FewYIYcF/Tx54 w3JV1LABmcpp/rKonz9KdKdLcVK/rG5Krf9Jt5ttzc1nQ3ljvY7PDTPlei0Bgi33WA11 Aa7nCUZQTwoJEhqgXjWw2kDIJVJThfZveZw836caUJMdNr9YV0WVg4j1y1RSyUfFslqS qPc286RqXst+zYYpOLQQYE4vBzfeELhFv5O+twhKjyouGtlc3pJexk2o6BXD1itXeGw1 9tWIRGS5A6A6UtO2ZxTXX4YuzCvw86x9n52+47vXBUJKham10y5GFtrjCzq257QjiP1Z cJvQ== 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=38IvB5KypHDAuaY3YawsJEBcvuco56ouTYCrEb+HEU0=; b=H5wlOVxaMy/tacPLZ9C2ZdxExiw1CYP1sUBSgAZPddbWE3NbHw9fe1CokD/h6ydunV FShTfTbhPSCu+vKZOSZvt40tR8C5mpfKpm/p1y8h7nAqb0X/Kht7TkG6G6a/LeM1Mmv8 9z3QUjHrlFgPJdcKhK5qv6CFRZfioZAk/EK89mB2gdV17vxaXWu3TkHzzrkgUGc7kbbo IdSOCyCO0idJikm3GX/06QRPR1jD7LdRhfuyxR3XKx1qBqaobD69kkgGQt6nV4BeZdue 6+BV3BoSqkw2C1grO/S8CqC9LQOqteg0tUokrEt1G1MTsG382bI5OMT0EZ3lMFyKWoPe CfXA== X-Gm-Message-State: APjAAAWe9IwECfSBpT2oyAXD5h8zdqYDiZfgJsmM3tkd1+QDEYepUOcG NZdYYgnXB9RxjEFPuUV3aac= X-Received: by 2002:a17:90a:b394:: with SMTP id e20mr11269156pjr.76.1562932953693; Fri, 12 Jul 2019 05:02:33 -0700 (PDT) Received: from localhost.localdomain.localdomain ([2408:823c:c11:478:b8c3:8577:bf2f:2]) by smtp.gmail.com with ESMTPSA id a128sm4605496pfb.185.2019.07.12.05.02.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 12 Jul 2019 05:02:33 -0700 (PDT) From: Pengfei Li To: akpm@linux-foundation.org Cc: urezki@gmail.com, rpenyaev@suse.de, peterz@infradead.org, guro@fb.com, rick.p.edgecombe@intel.com, rppt@linux.ibm.com, aryabinin@virtuozzo.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Pengfei Li Subject: [PATCH v4 0/2] mm/vmalloc.c: improve readability and rewrite vmap_area Date: Fri, 12 Jul 2019 20:02:11 +0800 Message-Id: <20190712120213.2825-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 v3 -> v4: * Base on next-20190711 * patch 1: From: Uladzislau Rezki (Sony) (author) - https://lkml.org/lkml/2019/7/3/661 * patch 2: Modify the layout of struct vmap_area for readability v2 -> v3: * patch 1-4: Abandoned * patch 5: - Eliminate "flags" (suggested by Uladzislau Rezki) - Base 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): mm/vmalloc.c: Modify struct vmap_area to reduce its size Uladzislau Rezki (Sony) (1): mm/vmalloc: do not keep unpurged areas in the busy tree include/linux/vmalloc.h | 40 ++++++++++++++++----- mm/vmalloc.c | 79 ++++++++++++++++++++++++++++------------- 2 files changed, 86 insertions(+), 33 deletions(-) -- 2.21.0