From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8830EC432C3 for ; Mon, 18 Nov 2019 19:41:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 363652231B for ; Mon, 18 Nov 2019 19:41:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="IP57T3Ba" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 363652231B Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7CB416B0003; Mon, 18 Nov 2019 14:41:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 77ACB6B0006; Mon, 18 Nov 2019 14:41:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6B8C26B0007; Mon, 18 Nov 2019 14:41:32 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0203.hostedemail.com [216.40.44.203]) by kanga.kvack.org (Postfix) with ESMTP id 584ED6B0003 for ; Mon, 18 Nov 2019 14:41:32 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 142F98249980 for ; Mon, 18 Nov 2019 19:41:32 +0000 (UTC) X-FDA: 76170417624.17.women54_d5a244c2db35 X-HE-Tag: women54_d5a244c2db35 X-Filterd-Recvd-Size: 4422 Received: from mail-ot1-f66.google.com (mail-ot1-f66.google.com [209.85.210.66]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Mon, 18 Nov 2019 19:41:31 +0000 (UTC) Received: by mail-ot1-f66.google.com with SMTP id m15so15597164otq.7 for ; Mon, 18 Nov 2019 11:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X3o0IsIZAZ7wZG7kNKtDTIC/+CrHgjEOKYqn/GJZgow=; b=IP57T3BawVyl+urI2HsWXb3a52KJBX1CVpOTmaws+YDj5nD8X94w/onrfLkCgdDNod wN66e0baMmlaayqO4Q3w/oj9JHMWfC3vyWSS1dnr+ktELyPIKg2CPpNZiEgrMSyTARJu MfEDJNd3GECOcxNV2Pt9Tm1NrDZr2sdTONBOAecH5v7zpR37Y5ZQyPSy9rL9hesTYa8F VW9wgwHLCxTr2sng/rdtXaBI/SkDjMD/wHYF3gAaCdx5bPmqjM/knxvxIJbignzjLPiF vrWTBmmunBhanAtLrzaAHfQoJFRV4XID3x2sLXwQ9ZkWVk8rMiynFeppf12qstMIXUF1 0AxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=X3o0IsIZAZ7wZG7kNKtDTIC/+CrHgjEOKYqn/GJZgow=; b=K7n87iyIhJQBTTZcwo5kcMz27R2HPfxOPfMsasM4ja+WdZ+Nhkwv6XC5/5j+kyjYMN vdHoHlnoP1Y85IlIfXDtzPECzC4AIYVvyw0jTA3EiVtbMHeP5JHCnUluLCCNOxax81D5 sQDAtX6vMWm35CYQV0iwgnz0+oE92l5b5gwXAqwD4ZCDFFPLhGAvbbjGpobH0NIgQQfK huNkOXBHUdZ7ieFe3Pug9YvjnWb/ehwHrY2Zew/gASyscn7S7hIrrimgeV3Lkxc3i8H7 NxMohZH7zF0ND6kVl/Aa9OTYmIF0JZRziFnrft+QTpNnJiQ4QN/tIDrxuTAa/Wp/0nSQ kJ7w== X-Gm-Message-State: APjAAAWmr94LHN2zJerBBwyc50eaOYt7sbCc63EZWj8dCQtZuixjZkgi Fx68ejkLxyoCMGQarZN70YXGcv9c7vNQkIaxxxIQqA== X-Google-Smtp-Source: APXvYqzUsgAQBjPOYLPLOEbi+X4F4sQfjR2aYPz7uHf2rwXILQINWQCn1hgtNd0dkCm49mZdpcu3Q2oMsIQ6w0Mchn4= X-Received: by 2002:a9d:5543:: with SMTP id h3mr715368oti.33.1574106090265; Mon, 18 Nov 2019 11:41:30 -0800 (PST) MIME-Version: 1.0 References: <20191030013701.39647-1-almasrymina@google.com> <20191030013701.39647-5-almasrymina@google.com> <010d5a90-3ebf-30e5-8829-a61f01b6f620@gmail.com> In-Reply-To: <010d5a90-3ebf-30e5-8829-a61f01b6f620@gmail.com> From: Mina Almasry Date: Mon, 18 Nov 2019 11:41:19 -0800 Message-ID: Subject: Re: [PATCH v8 5/9] hugetlb: disable region_add file_region coalescing To: Wenkuan Wang Cc: Mike Kravetz , shuah , open list , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, cgroups@vger.kernel.org, Aneesh Kumar Content-Type: text/plain; charset="UTF-8" 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: > On 10/30/19 9:36 AM, Mina Almasry wrote: > > /* Must be called with resv->lock held. Calling this with count_only == true > > * will count the number of pages to be added but will not modify the linked > > - * list. > > + * list. If regions_needed != NULL and count_only == true, then regions_needed > > + * will indicate the number of file_regions needed in the cache to carry out to > > + * add the regions for this range. > > */ > > static long add_reservation_in_range(struct resv_map *resv, long f, long t, > > Hi Mina, > > Would you please share which tree this patch set used? this patch 5/9 can't be > applied with Linus's tree and add_reservation_in_range can't be found. > > Thanks > Wenkuan Sorry for the late reply. Locally I have this patchset on top of linus/master and a patchset that added add_reservation_in_range. But, this patchset can be rebased on top of this commit with 'minimal' merge conflicts: commit c1ca56bab12f3 (tag: v5.4-rc7-mmots-2019-11-15-18-40, github-akpm/master) Author: Linus Torvalds pci: test for unexpectedly disabled bridges It's the latest mmotm I find on https://github.com/hnaz/linux-mm.git. My next patchset will be rebased on top mmotm. > > > - bool count_only) > > + long *regions_needed, bool count_only) > > { > > - long chg = 0; > > + long add = 0; > > struct list_head *head = &resv->regions; > > + long last_accounted_offset = f; > > struct file_region *rg = NULL, *trg = NULL, *nrg = NULL; > > - /* Locate the region we are before or