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=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 A8F6DC43331 for ; Sun, 29 Mar 2020 20:09:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 68D9D20732 for ; Sun, 29 Mar 2020 20:09:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="bUHjhkA1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 68D9D20732 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 137C96B0010; Sun, 29 Mar 2020 16:09:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0C2166B0032; Sun, 29 Mar 2020 16:09:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA4476B0036; Sun, 29 Mar 2020 16:09:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0155.hostedemail.com [216.40.44.155]) by kanga.kvack.org (Postfix) with ESMTP id CE4436B0010 for ; Sun, 29 Mar 2020 16:09:56 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id BBCF42C07 for ; Sun, 29 Mar 2020 20:09:56 +0000 (UTC) X-FDA: 76649490792.23.oil28_56c49f1586b5d X-HE-Tag: oil28_56c49f1586b5d X-Filterd-Recvd-Size: 4971 Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Sun, 29 Mar 2020 20:09:56 +0000 (UTC) Received: by mail-lf1-f67.google.com with SMTP id c5so12331106lfp.5 for ; Sun, 29 Mar 2020 13:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CDzpIw5Dwqx87pXbxst3BXzLJY05rEwRTdeUPJLp2p8=; b=bUHjhkA1Af+QiPaVmhyq86BzGJeSR2DakZAUmFAPw9Xt+RlcyzMxIIRxmot0HmwELi ADDlZPZ6dsx90Zz77SzT7Uxh7WfgSkq4bSapA/RwDPg0DHyDpgO62IH/keqF9PXXyowL bUibJtuc65zjqn/WGlrSempOI99VirDosSizc= 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=CDzpIw5Dwqx87pXbxst3BXzLJY05rEwRTdeUPJLp2p8=; b=Mfd5U97isMd9XMmgfOq9RkGzuLxPnYZaeNWfqY2+iA1vXCTCScSOF48WgYGWz82d4U +il7gcoRFK8twcIEZaAl1jm9RO3Q8i4u9earO0G8AKzeQWUXvQn8FC/4oZwuQvSfy8uQ bxAhJdlC612IgbprehQB/tBzCkEaaPK4IfE33hTQnX1INgRoUcKsszAC1JN+IVsvtx0j tJcX99UAs5h57zKjqX57RvwL48y/NYNAXUDdLm2mERd4nuxfU1HG685mcz6C+xS79QbB yahVC+TDbn/REdMhn8ndP3N356eTIorJdvQdsU7qG74To/NZgHXL2fsDPldKgUnZK8Ej G03w== X-Gm-Message-State: AGi0PubREJ5gaVN7f4B3CjstvRJ1SCLlaGmAtZdj/W3KILQF+PnVZUoe /3YuVQbAsd03I+ZXQN9TuGq4SZSvaqo= X-Google-Smtp-Source: APiQypJ4Bo9cpi31fXBcT+VdG78BVXHJZwE0xiP1HCe9TGW1Zhw6HK07PZTUwgkAsLygbR9m3qXw3g== X-Received: by 2002:a19:7e01:: with SMTP id z1mr5938896lfc.196.1585512594008; Sun, 29 Mar 2020 13:09:54 -0700 (PDT) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id y64sm6707689lfa.88.2020.03.29.13.09.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Mar 2020 13:09:53 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id u15so3220345lfi.3 for ; Sun, 29 Mar 2020 13:09:52 -0700 (PDT) X-Received: by 2002:a19:7f96:: with SMTP id a144mr6062690lfd.31.1585512592314; Sun, 29 Mar 2020 13:09:52 -0700 (PDT) MIME-Version: 1.0 References: <20200228095819.10750-1-david@redhat.com> <20200228095819.10750-2-david@redhat.com> In-Reply-To: From: Linus Torvalds Date: Sun, 29 Mar 2020 13:09:36 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] mm/memory_hotplug: simplify calculation of number of pages in __remove_pages() To: David Hildenbrand Cc: Linux Kernel Mailing List , Linux-MM , Segher Boessenkool , Andrew Morton , Oscar Salvador , Michal Hocko , Baoquan He , Dan Williams , Wei Yang 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 Sun, Mar 29, 2020 at 12:19 PM David Hildenbrand wrote: > > This patch seems to have another of these weird MIME crap in it. (my > other patches in -next seem to be fine) > > See > > https://lore.kernel.org/linux-mm/20200228095819.10750-2-david@redhat.com/raw That email actually looks fine. Yes, it has that fro= m pattern, but it also has Content-Transfer-Encoding: quoted-printable so the recipient should be doing the right thing with that pattern. The patch itself also has MIME encoding in it: - cur_nr_pages =3D min(end_pfn - pfn, -(pfn | PAGE_SECTION_MASK)); + cur_nr_pages =3D min(end_pfn - pfn, so the patch wouldn't even apply unless the recipient did the proper MIME decode of the message. That's also why the non-raw message looks fine: https://lore.kernel.org/linux-mm/20200228095819.10750-2-david@redhat.com/ because the raw message data has the proper encoding information. In contrast, look at the email that Andrew sent me and that I complained about: https://lore.kernel.org/linux-mm/20200329021719.MBKzW0xSl%25akpm@linux-foundation.org/ and notice how that *non-raw* email has that Withou= t pattern in it. And when you look at the raw one: https://lore.kernel.org/linux-mm/20200329021719.MBKzW0xSl%25akpm@linux-foundation.org/raw it has no content transfer encoding line in the headers. Linus