Message ID | 20180810152931.23004-1-osalvador@techadventures.net (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1BBB6174A for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 10 Aug 2018 15:29:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 098E72BCD2 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 10 Aug 2018 15:29:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F104E2BCD9; Fri, 10 Aug 2018 15:29:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72CA72BCD2 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 10 Aug 2018 15:29:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AE0496B0003; Fri, 10 Aug 2018 11:29:37 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A68176B0005; Fri, 10 Aug 2018 11:29:37 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 97D6E6B0006; Fri, 10 Aug 2018 11:29:37 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by kanga.kvack.org (Postfix) with ESMTP id 5781E6B0003 for <linux-mm@kvack.org>; Fri, 10 Aug 2018 11:29:37 -0400 (EDT) Received: by mail-wr1-f71.google.com with SMTP id d10-v6so7330571wrw.6 for <linux-mm@kvack.org>; Fri, 10 Aug 2018 08:29:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=tZ2pUXudqHMvttxTFUUXp2FL75BvT7A1xx18lfkERkQ=; b=Iufn6tC1whU91Og97ggMP9R1V3Sfmbf0YErc5uyaoXjg6ZYY02BSXBNW6nFZqLk6Qt ury1ZVwnlkBfsJi00gWGXmoUXCdE229a+1S/lm78m3FqUwS13vuxVWLzQ99CD5HBrSI6 HxaLD2p31wjWCDrLFZdnCg+qiDy9I0c5hc1ucVwArXdN6/h5s2WKf1EGRdThaX3EQ5cW fLV89B05TzJk2kcc6MTzv/4S2kFZWw00gzlkpzetWcO2Gh1cpQwB7Z9q2TuKRm96z2xQ D0E0HUCWbyUYqk24xMjLIED/jXCPWGSPnZuVxWp93HK0sJZZzh3Wvm3ObjP7KM2oqAGf 7cnw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=osalvador.vilardaga@gmail.com X-Gm-Message-State: AOUpUlFV0r5uWwfmwUI6Ibx5VsFZNAvCYQKzRRCoVW3GsSmbfHTzvEHF FvVZbDucY5iuqpg2WN0MegplQpR6PuORgQpgFM4vdEZjxLU1f2KC60PNFp/nR/KQia57NYTEXAv kyLWTzP3kgsZaPfgP5xhdi7UsWjcm1jWg7IsNwg2x9wV2+42ksYe012gi0+F1HVQEdUUOZdXEK7 dgk5MQvpBVofDF288J21KV9fZK7D1xJCKuq253fxLkjY77s4RUgrNQs/P5UN8SYWDniS5e5W6mi lrso9yAKWphZmmBDBsdgsMhMwKCY+RxQw8yUn1AOwzQfUz62VkpFAcuQEOHy/9fjJRAqB2xC+pP P38QwFAXS7VjjSvMy6eT2RxpbIh9GBES3iSKgh5YHLyzeW1vU8fwKeu60zeVaxr9B2Duayw67w= = X-Received: by 2002:a1c:b58e:: with SMTP id e136-v6mr1717869wmf.141.1533914976797; Fri, 10 Aug 2018 08:29:36 -0700 (PDT) X-Received: by 2002:a1c:b58e:: with SMTP id e136-v6mr1717831wmf.141.1533914975900; Fri, 10 Aug 2018 08:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533914975; cv=none; d=google.com; s=arc-20160816; b=R34oqy90qo/yF7Nq8euHTCznh5WRmdeqxT5fXTCmCLDDMSp/Jh2vXR0zo1wncHie0u 1urwKT8N6qKzqvuHsEYNq4LJmYJNW+ENZ3BKPQt5058iMWahnZ2F02IqT5I1X3zjrYIZ LMJLadXdo1c8Fo2DJKScLWiEOPoC0Vgz5ixeQNxsuHCasjkr3kKIl7ojiJP9J9Z2Lpu+ iVOJFsrMR9lr0UIijEL4ZaGPBtISiTjRPgONKgMPvP+9/OTF9j/ezcC/Y+lay7o/TdSt THKJxd4L9shf56oqdeCDBTBSrbQHNzX8IHsdhukDC+f87qxwhftC8FhHagclJf0DM35R ua1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=tZ2pUXudqHMvttxTFUUXp2FL75BvT7A1xx18lfkERkQ=; b=sQWG9aePV1zCpyhugTj3b9mLxxk1a9C2dgX8efb35OvvymtrhMLeYFkWGC21lQETsX NvIClJWFxjvk8U858dixPlE9wMmJmDAO+vwa8unLdvarCkcJ2Ofwctoi+tFXLbY8wkOi 3FVYPxtjuhbqx2eA7Xxn7fPtzMqIt/indb/M7xFoHO2b7Ip7i5JiVMIkRPfbudH+B39h 8PfREt9o5AObK6OIMwGIyUVmvlQ8beXlOgMDFiVuugCIy1AG3zYF9VPXbqqaA6KRdjY2 QrT5tm3dJVZHzTezR+E6qz6lEsrCEz2y3bEMyu+x6eQNCxjnuOzsqlC0s1YPhlPBlWYF 3Vug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=osalvador.vilardaga@gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id c11-v6sor3977445wrp.19.2018.08.10.08.29.35 for <linux-mm@kvack.org> (Google Transport Security); Fri, 10 Aug 2018 08:29:35 -0700 (PDT) Received-SPF: pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; spf=pass (google.com: domain of osalvador.vilardaga@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=osalvador.vilardaga@gmail.com X-Google-Smtp-Source: AA+uWPygCq5sUV7Ow93YgVQ3Pg6z0f6w0Xlg+RxKpr0y9pyn7LltkOoMXTDnIO1CPx94jSmVOD/z4A== X-Received: by 2002:adf:e190:: with SMTP id k16-v6mr4618527wri.36.1533914975383; Fri, 10 Aug 2018 08:29:35 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id j9-v6sm10863026wrv.5.2018.08.10.08.29.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 08:29:34 -0700 (PDT) Received: from d104.suse.de (charybdis-ext.suse.de [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id B37721247F5; Fri, 10 Aug 2018 17:29:33 +0200 (CEST) From: osalvador@techadventures.net To: akpm@linux-foundation.org Cc: mhocko@suse.com, vbabka@suse.cz, dan.j.williams@intel.com, yasu.isimatu@gmail.com, jonathan.cameron@huawei.com, david@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador <osalvador@suse.de> Subject: [PATCH 0/3] Refactor/cleanup for remove_memory_section/unregister_mem_sect_under_nodes Date: Fri, 10 Aug 2018 17:29:28 +0200 Message-Id: <20180810152931.23004-1-osalvador@techadventures.net> X-Mailer: git-send-email 2.13.6 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Refactor/cleanup for remove_memory_section/unregister_mem_sect_under_nodes
|
expand
|
From: Oscar Salvador <osalvador@suse.de> This patchset is about cleaning up/refactoring a few functions from the memory-hotplug code. The first and the second patch are pretty straightforward, as they only remove unused arguments/checks. The third one change the layout of the unregister_mem_sect_under_nodes a bit. Oscar Salvador (3): mm/memory_hotplug: Drop unused args from remove_memory_section mm/memory_hotplug: Drop unneeded check from unregister_mem_sect_under_nodes mm/memory_hotplug: Cleanup unregister_mem_sect_under_nodes drivers/base/memory.c | 5 ++--- drivers/base/node.c | 34 +++++++++++----------------------- 2 files changed, 13 insertions(+), 26 deletions(-)