Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1797528ybb; Sun, 29 Mar 2020 13:43:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv36QfXzuCu1qNfSwdU2TNwcsr+/u3WDODsusaxIqCTDZbBy4QYuKR7bDTvGvApomIdKQHc X-Received: by 2002:a05:6830:1d1:: with SMTP id r17mr7072067ota.81.1585514596015; Sun, 29 Mar 2020 13:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585514596; cv=none; d=google.com; s=arc-20160816; b=sTylKtgOz2Ub4HE7xACQBIFSw3E9eDp3NFvlaiduFfuZDWJSM6GEcmJOzyOGt+tt88 fwgMtfcbomZwh3Lb4hytPVGQzrgH9uZpdGUW59FTy/DC72I+1IrZdQkbNJaD9sKc8oId ZIxlD5qCd+uxkL2LD9DF+Yv+ch3dp6ryq7LJdbT77/bmabBHshc76V+ZXRi3AK/BbzQT 8rFHTVfMiSXcUw6/wsZus6STBad1gWp8la5FHOX4KqLQD6Zt4qJph7KAYJjkPat1r4+m 4ke6oXgmyypjygUZ+e1UEph+fXtcfS6Gr8HvyVtJsAp4ESxIS0UnL9/E/8A5LPbgCCXI Hgrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=5YQVKx16TS+5clxSLtkXpe8YoP0huXDFkfGYX4zkxME=; b=PPDWoQEImGqcZR8jCGeKUnvEkMnI97+nz0MlfUn4LikpZarPz86uNhC0UvtZNriT+3 5810Kf8eBQjHPwXITlImnF723tXpf2JUdSNAnW31jLjAFAxHA6I5u9wQIclXTHA5neri HRPMiOKoWEfoJP2L2vQgGWnZCFtiAFh2M0+eGuflI5IUXDHpcPiyiP1INQl0Enz1364O ltxXvG04MnP93QcZdeUyQjWt+gMC7xxxGeXQ9I2SWyK19ni78tjRoUH/h2lvPrBFNFnw jIBJhWqA7JzvDtSMoTC/fSQH+5/uIMn6E86+a/HBS/tcZ2c/bduZZdy0mvj8McqTM3WJ crfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JX5yxLW3; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c20si5843686otr.39.2020.03.29.13.42.52; Sun, 29 Mar 2020 13:43:15 -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=@redhat.com header.s=mimecast20190719 header.b=JX5yxLW3; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728619AbgC2URz (ORCPT + 99 others); Sun, 29 Mar 2020 16:17:55 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:22353 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728481AbgC2URz (ORCPT ); Sun, 29 Mar 2020 16:17:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585513074; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5YQVKx16TS+5clxSLtkXpe8YoP0huXDFkfGYX4zkxME=; b=JX5yxLW3vmMR/kxT8cEtrTDSmVqwfhy781f2LVtzKtwSM8p21+vnvXpg5NUCJDSi+4h0B+ HG9D/bomo91Gp5iYW6W6aS5asyb6wjSCJV3qXYzSFGwiq+aD5WCrJ7G6ARog2Uzv0bvcMf Xdls9p1rRJ5C+1kfw8rlbU+5HzIn3+s= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-56-PcG6bRu1NJORZ_S4r-Yp5w-1; Sun, 29 Mar 2020 16:17:50 -0400 X-MC-Unique: PcG6bRu1NJORZ_S4r-Yp5w-1 Received: by mail-wm1-f70.google.com with SMTP id u6so931072wmm.6 for ; Sun, 29 Mar 2020 13:17:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=5YQVKx16TS+5clxSLtkXpe8YoP0huXDFkfGYX4zkxME=; b=ESXaDetHv6zDPT7AnGnTRl14LuO2uVDwfIEBtOD+Xo5CcK4ZRkukx5repM/WxBYnvQ ygBoFEmZ4L8Rs7tkzOZhiUPuyxf4ceH6lewvH4eVacuChJcYIen6LpT8TO0QdwgrfARU OztGKy90FjWGmMyLqYo9/2S3oJkkjNwlA/t6sdSNwAA7ls0IHqq9rEfdW/DohXf6etQb Yiqx0xqnP1Im4dX3WD41iMX4fvMZ+TF4JI+IV4APjvCKzW/B+F2+9zbdqfXj7VpaW71l Ho6JIUA4XDu4W2plPh02s2xyMT/epuKR/53DDUiMccneGvYwgYUC5IAdEfEsRjRifAJH twXw== X-Gm-Message-State: ANhLgQ2PevOfRcUAAZEg/l37ARGRA65AG75l1bPLCbsd990hSBuLcCOM uwC/frw7Zu/WrPz0sDRr41DeUciZBSrwuLIHD/QvM3SSKDT1bdls5Vy3KS+PwRxvh0Qhc713I+R s335kOACG3SCrLAkzvvEoXKlJ X-Received: by 2002:a5d:4cc4:: with SMTP id c4mr11020549wrt.346.1585513068823; Sun, 29 Mar 2020 13:17:48 -0700 (PDT) X-Received: by 2002:a5d:4cc4:: with SMTP id c4mr11020522wrt.346.1585513068448; Sun, 29 Mar 2020 13:17:48 -0700 (PDT) Received: from [192.168.3.122] (p4FF23127.dip0.t-ipconnect.de. [79.242.49.39]) by smtp.gmail.com with ESMTPSA id j11sm18440236wrt.14.2020.03.29.13.17.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Mar 2020 13:17:46 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: David Hildenbrand Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2 1/2] mm/memory_hotplug: simplify calculation of number of pages in __remove_pages() Date: Sun, 29 Mar 2020 22:17:46 +0200 Message-Id: References: Cc: David Hildenbrand , Linux Kernel Mailing List , Linux-MM , Segher Boessenkool , Andrew Morton , Oscar Salvador , Michal Hocko , Baoquan He , Dan Williams , Wei Yang In-Reply-To: To: Linus Torvalds X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 29.03.2020 um 22:10 schrieb Linus Torvalds : >=20 > =EF=BB=BFOn Sun, Mar 29, 2020 at 12:19 PM David Hildenbrand wrote: >>=20 >> This patch seems to have another of these weird MIME crap in it. (my >> other patches in -next seem to be fine) >>=20 >> See >>=20 >> https://lore.kernel.org/linux-mm/20200228095819.10750-2-david@redhat.com/= raw >=20 > That email actually looks fine. >=20 > Yes, it has that >=20 > fro=3D > m >=20 > pattern, but it also has >=20 > Content-Transfer-Encoding: quoted-printable >=20 > so the recipient should be doing the right thing with that pattern. >=20 > The patch itself also has MIME encoding in it: >=20 > - cur_nr_pages =3D3D min(end_pfn - pfn, -(pfn | PAGE_SECTION_MASK)); > + cur_nr_pages =3D3D min(end_pfn - pfn, >=20 > so the patch wouldn't even apply unless the recipient did the proper > MIME decode of the message. >=20 > That's also why the non-raw message looks fine: >=20 > https://lore.kernel.org/linux-mm/20200228095819.10750-2-david@redhat.com/= >=20 > because the raw message data has the proper encoding information. >=20 > In contrast, look at the email that Andrew sent me and that I complained a= bout: >=20 > https://lore.kernel.org/linux-mm/20200329021719.MBKzW0xSl%25akpm@linux-f= oundation.org/ >=20 > and notice how that *non-raw* email has that >=20 > Withou=3D > t >=20 > pattern in it. And when you look at the raw one: >=20 > https://lore.kernel.org/linux-mm/20200329021719.MBKzW0xSl%25akpm@linux-fo= undation.org/raw >=20 > it has no content transfer encoding line in the headers. Interesting, at least the patch in -next is messed up. I remember Andrew ada= pted some scripts, maybe this is a leftover. Cheers! >=20 > Linus >=20