Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp817934ybp; Fri, 4 Oct 2019 05:32:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHCvmvWxESQJp/qQN+mXAVxUbrD6OcbvICQMScU/AJVmqgIWddwotaCDhRfddU1QsgkFI5 X-Received: by 2002:a05:6402:1a45:: with SMTP id bf5mr14547483edb.275.1570192338626; Fri, 04 Oct 2019 05:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570192338; cv=none; d=google.com; s=arc-20160816; b=lBcrzRbEXzKO4OPhPOl6ydG6uLQWzkU62sbF5CNZVsmeTdMU9g+kR6uqDhUz70jh64 tLCF40V0aE3j2CVRZElkcD7o42wAYtQ6+5gmUBcVbOWi2hGvqqgk0m9mKvjb2Cce66+a Kyhg6b7Szg8GMiVdpU2UI6tQaD/shPRz8eaomFtEyWJtTRtx7jgrTd3zOYqEzBPZeR3C 6XW92uTkp0NEGeAFRKMaYbQrQTjQuStwC84sRsoSC1gufKaU8F1lmEi42tYmibJBkavY esc1f4Aw/kI57izRni1wOWbpIYQupOrQWr4VmwVu8xSdGU7xj42Xusc0GRXGyaVrd8QW 0svA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3h7sOSA5jjR1emcH5dOd6H8xcJkobT200k6X8W+3UrY=; b=AHFSjNOYUS+3R59Ugiy9dSYwB7wOWBdtNvsVzJdx0VUYv5a8TjviAapOFNx5UPpwtQ 4U73/p9yjj/CbFTmPmHXKa1UQrrs9EA4qNOoSELc7fToJhNfCgUxr+YwG8a9gz1KCzoJ DaLmK3y6Er4UekdRDx6DkuGkM71MgF0dUk7TEMjeUQf5kMhvVwpGp1C4Yk1S+Mcp2sU1 Ue9W3l5/ij4WXjyUEerTvH2AC0cvJGbmFvkprH08lB2WC5UqkdZN1XT9NI48jVWv8/rJ IPRehRWupMyOGMezfEYd9mD9AsHJ4P/pB1019sdUcXNcEyp1U3BBdcSBBXMENOJSaMwh ZZvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RizUr5If; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id br24si2895081ejb.101.2019.10.04.05.31.53; Fri, 04 Oct 2019 05:32:18 -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=@google.com header.s=20161025 header.b=RizUr5If; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730844AbfJDMas (ORCPT + 99 others); Fri, 4 Oct 2019 08:30:48 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:37894 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729364AbfJDMas (ORCPT ); Fri, 4 Oct 2019 08:30:48 -0400 Received: by mail-pf1-f193.google.com with SMTP id h195so3828867pfe.5 for ; Fri, 04 Oct 2019 05:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3h7sOSA5jjR1emcH5dOd6H8xcJkobT200k6X8W+3UrY=; b=RizUr5Ifv1Bz8eqstV0Ksj9u7iT3BnODSB9UF+fHMQWB6OJQT7drjZhpvl+9z5fgF2 saLhn7S19fMY3bByCWvEiDR1zYH0oLs8BXfRNmgdfvGXfz6AIkny2X4q15DuAdRI/ljH d8suc9q/fgiLkaQjRaqqA17Ywqz0XgkG6x9XOFMqr4/Zm4mi1j1dXX/39RO+SNJ+CWhd rAo0bZ5e1ID09f6zmDJ+YvdcLhiSwz/NPyopNmDZAAdhG5nEweJj5/zSexE7mND/m8Wb McPyrdp106HPZnZX4jD8PI5wsew95R4kZjqXT7w1Ty9EEr52H6Zado1HrHQjXf7bDkAC rU3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3h7sOSA5jjR1emcH5dOd6H8xcJkobT200k6X8W+3UrY=; b=DwIqzKoIKxIiKgLdYKIwEZy2SAKZu8CotcBOsdjDFBKv8HDJpm8J509ZEhTi0HRIQj biq+Wp5RSxwITYnvKThNQrm766NaJACxwIIz+MIJ4tYRdEkSLmgHYek7VCW1UvAtluo6 1lsJS/7ggoBGBE5npTvoEA+NRPSSnkD5ZVYEUu4BWdICJ+NiuoXQ+ZLtG82xc2V3JLJK xqiIIi+OQ8HNCtQjVHUjWTj/rfUtLQen7MowbhM/OaKNCN+8ycCjlUPtOvRvveiM58Uc 6Hd+wDf/FHaNCPR3z/ZLHUiMJ1zqzCtNgZZu0sBxWBLdZs2QINNnKgnAzoLHEre28XsV +x8w== X-Gm-Message-State: APjAAAVY2QO/juZBeK2YgMFpqMGkUvJ6wTgbHixEFAcpdh7Rs57fj/C9 Pap+KrxRzTVOcYUbssYeGF+WLIuSOng= X-Received: by 2002:a62:5485:: with SMTP id i127mr16750418pfb.260.1570192247465; Fri, 04 Oct 2019 05:30:47 -0700 (PDT) Received: from google.com ([2620:15c:2cd:202:668d:6035:b425:3a3a]) by smtp.gmail.com with ESMTPSA id p1sm8907022pfb.112.2019.10.04.05.30.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 05:30:46 -0700 (PDT) Date: Fri, 4 Oct 2019 05:30:44 -0700 From: Michel Lespinasse To: Davidlohr Bueso , Matthew Wilcox Cc: akpm@linux-foundation.org, peterz@infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH 08/11] mm: convert vma_interval_tree to half closed intervals Message-ID: <20191004123044.GA11046@google.com> References: <20191003201858.11666-1-dave@stgolabs.net> <20191003201858.11666-9-dave@stgolabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191003201858.11666-9-dave@stgolabs.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 03, 2019 at 01:18:55PM -0700, Davidlohr Bueso wrote: > The vma and anon vma interval tree really wants [a, b) intervals, > not fully closed. As such convert it to use the new > interval_tree_gen.h. Because of vma_last_pgoff(), the conversion > is quite straightforward. I am not certain if we need to worry about integer overflow here. The problem case would be accessing the last block of a file that is exactly 16TB long, on an arch where long (and thus pgoff_t) is 32-bit. Maybe FS folks can tell us whether that case is currently supported, or if we can just not worry about it ? I would also want to rename the fields in struct zap_details into start_index and end_index so we can verify we don't leave any off-by-one uses. -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies.