Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp695183ybi; Fri, 7 Jun 2019 15:27:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoWSpIaG+YWNxcwGoJyag5XFwHnAhzdZuwipdO2tuyEnGprj86L87uyC/iNC7D5/A/MxD+ X-Received: by 2002:a17:902:9b81:: with SMTP id y1mr33178523plp.194.1559946458545; Fri, 07 Jun 2019 15:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559946458; cv=none; d=google.com; s=arc-20160816; b=SJxxi4rHjik8JY8ScENvff7+r1dsX7xgZWGiisl8ezyoqv2z14bfVBq2TyT7yB1Rlj VALokeh+MhN9Avi8VmW7GRAfwbh/R4ZK9ZPMHVhy7huQwIeg68gRF6ZKMjmx5UYbHxIu XEE/Hs7XEelindlmYCKExeCm+zWDq2d0Jy/jK+yjdh/7//NCeQa8y7KitKYvFyGN17E7 85EmhzkykmOIeQhSqGY3SRCRmk9TV/XiooAmDSnEsrg23/fvi+gE/2MqFiNpeOrJFfVM uyajeAYOjT4Fs6htuF87TdMgce4/sjps+PSF7SFCIE1Ejmm/xnoqx1R/9GcCuLUNRSFb a46g== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=OVtIURD1TiJyiciouFgxnPzvqEltpMSaTRKbY9x6PTc=; b=i9uSsNQGUWdY06R9ufzA5FY6yTt0OTX9EmyayYKWzNW6YIAnypXZWYywymbjhERQ3d Q9Eooj05uU0F/f/9Tk4Jrkd5A4txirHoZFzEFil59o+byxd86E0gN+142/0IymPPUril k1TCH9XEXuDTq4gpavuFwEVWAyW7giBCcwb2/Q3q6OG7q1ZpqnGLBOl3AD3RAPZ4S3VI FUAADszmmqYkIgqhAHUPnao3/fy7QmPwez85JSvmLs72D1BVzrNG66GaBCQBZmYqhMbL KK3tNetJ58+xeDH5d5XqpcYoJcgZMkfvs9VhA+ywtrUdHdDCEtT5Utq82Ad7YB+oeNWK YKvw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y186si3051265pfy.212.2019.06.07.15.27.22; Fri, 07 Jun 2019 15:27:38 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731408AbfFGVla (ORCPT + 99 others); Fri, 7 Jun 2019 17:41:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:50122 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731340AbfFGVla (ORCPT ); Fri, 7 Jun 2019 17:41:30 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 56294ABE9; Fri, 7 Jun 2019 21:41:29 +0000 (UTC) Message-ID: <1559943687.3141.8.camel@suse.de> Subject: Re: [PATCH v9 08/12] mm/sparsemem: Support sub-section hotplug From: Oscar Salvador To: Dan Williams Cc: Andrew Morton , Michal Hocko , Vlastimil Babka , Logan Gunthorpe , Pavel Tatashin , Linux MM , linux-nvdimm , Linux Kernel Mailing List Date: Fri, 07 Jun 2019 23:41:27 +0200 In-Reply-To: References: <155977186863.2443951.9036044808311959913.stgit@dwillia2-desk3.amr.corp.intel.com> <155977192280.2443951.13941265207662462739.stgit@dwillia2-desk3.amr.corp.intel.com> <20190607083351.GA5342@linux> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-06-07 at 08:38 -0700, Dan Williams wrote: > I don't know, but I can't imagine it would because it's much easier > to > do mem_map relative translations by simple PAGE_OFFSET arithmetic. Yeah, I guess so. > No worries, its a valid question. The bitmap dance is still valid it > will just happen on section boundaries instead of subsection. If > anything breaks that's beneficial additional testing that we got from > the SPARSEMEM sub-case for the SPARSEMEM_VMEMMAP superset-case. > That's > the gain for keeping them unified, what's the practical gain from > hiding this bit manipulation from the SPARSEMEM case? It is just that I thought that we might benefit from not doing extra work if not needed (bitmap dance) in SPARSEMEM case. But given that 1) hot-add/hot-remove paths are not hot paths, it does not really matter 2) and that having all cases unified in one function make sense too, spreading the work in more functions might be sub- optimal. I guess I could justfiy it in case both activate/deactive functions would look convulated, but it is not the case here. I just took another look to check that I did not miss anything. It looks quite nice and compact IMO: Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3