Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1985842ybv; Fri, 14 Feb 2020 09:19:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwF3r5Bke3eYj63mwRKxis2nxj1ll3FWy7+hkoaTEFWq7VaQGL8Vsg7IBVCzpLVVvoVVY9H X-Received: by 2002:a9d:6196:: with SMTP id g22mr3242522otk.204.1581700768535; Fri, 14 Feb 2020 09:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581700768; cv=none; d=google.com; s=arc-20160816; b=UwtpORfvlRE0I/0LhQ/ZBHSVCyP9sBbNKPaSPQhjOpB8D6dSRK6oPbuIYI6RPAyaCv hmngpVsPJDCOxSH23FkL4r6BIzV5CkpQNeRIK1IQNE7NuLNbp9K0zDSIE+WtPqDqQag8 LiqDoDf4U6S/0rDaklwjg+dt6XLtYtgBHlnkkUkugN+20p+tYF2iOI5ESGZEU7fYiBUP iWU7BRsuP1mNQ8f2lPzbQ2eVN/pfmEVjLY7NblqMdEkQ9U0vg2tAIZ7uzVGJBfS7gEQl hEmfY6T4ZZTaAeLSenRyL6ymOUUVcr3fvm8vGELISLxa16mfxd7JjxurkrVLuiQcf+Yh +qQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Hg6XK4oCtKAsHaN8e4mV2tbHcNAh2qWxS6KIFOIVXNQ=; b=cR/tzDkO4HvXb48aB391qz33sD9FK7ieUbX75dO4+Y0PsDs+lzEsuBia6q4pLtNxMp tnFt1ESl9qRpeHuREdA+3gTijfX/KQF0Xqp4e20AX+wTOJK28wRcTE7vsG59lJXq5HFb eUF73F58Dm6HzwE1mMXW+YD4NLjeSS/92wNxb0XJ7VPb9TazFusundCdV/1zdhoGM8SK 0hXaNULVXSo1TUawJPkpa3k2aDXg5urOzL8ABHk1QKxJklZ29Bqu3cBIpAwKff/Le+8d fHzzfSVhAo1y2SgLxVlA+s5Q/sGhoKqJkplNBQEGvEFgf5hhmBW2ioiEplqcLxWs+kYS Upxw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si3246210otr.39.2020.02.14.09.19.16; Fri, 14 Feb 2020 09:19:28 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391855AbgBNRRw (ORCPT + 99 others); Fri, 14 Feb 2020 12:17:52 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:42649 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390394AbgBNRRo (ORCPT ); Fri, 14 Feb 2020 12:17:44 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R951e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07488;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0TpzUUPH_1581700648; Received: from US-143344MP.local(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0TpzUUPH_1581700648) by smtp.aliyun-inc.com(127.0.0.1); Sat, 15 Feb 2020 01:17:30 +0800 Subject: Re: [v2 PATCH] mm: shmem: allow split THP when truncating THP partially To: "Kirill A. Shutemov" Cc: Hugh Dickins , kirill.shutemov@linux.intel.com, aarcange@redhat.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <1575420174-19171-1-git-send-email-yang.shi@linux.alibaba.com> <00f0bb7d-3c25-a65f-ea94-3e2de8e9bcdd@linux.alibaba.com> <33768a7e-837d-3bcd-fb98-19727921d6fd@linux.alibaba.com> <20200214154021.kgeon6i76yfdbaa5@box> From: Yang Shi Message-ID: Date: Fri, 14 Feb 2020 09:17:26 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20200214154021.kgeon6i76yfdbaa5@box> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/14/20 7:40 AM, Kirill A. Shutemov wrote: > On Thu, Feb 13, 2020 at 04:38:01PM -0800, Yang Shi wrote: >> Hi Kirill, >> >> >> Would you please help review this patch? I don't know why Hugh didn't >> response though I pinged him twice. > I have not noticed anything wrong with the patch. > > But the function gets ugly beyond the reason. Any chance you could > restructure it to get somewhat maintainable? (It's not easy, I know). Yes, those goto looks not neat. I'm going to give it a try. Any suggestion is absolutely welcome. >