Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1885432ybv; Fri, 14 Feb 2020 07:40:57 -0800 (PST) X-Google-Smtp-Source: APXvYqygoaQuVoMgUjgAyb5b9gqgg3DKonnMoMqxzXoSq+WgWY0WJHOiULyIgd621bYlm5TsBg6b X-Received: by 2002:a9d:760d:: with SMTP id k13mr2673507otl.42.1581694857644; Fri, 14 Feb 2020 07:40:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581694857; cv=none; d=google.com; s=arc-20160816; b=OanHVsEQvn63UcpRiaK968MwWJlXpurdNs1fcFVWv+dOSw9wm9eUdyD/ManhqlfGbc QluTUs/FfIz0AP7ksv/XLcCJxfDsyorZ5sYQHGwHQ6GB7apGjmdHlLfmFBFPmlky7W6Y 8OBFLqu/yGhlU25zd/6Y6eTYixEYozXeAXJ6wAwfoC1jMTt90Lvy0uCZtvLkhLDte6eM OjEjx4CFlmylCfwv8q3UC4M8eS0o0HPJRmYloGVaua1jhKjbNbbu4kdOx1aXFgGHr3/t gSXgkqaYO+xeMYhHAC5wvqMhdY4E7czdaqf8ccu4S0RpE13k870IlZZBFk8GGpfz7cbv DkPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uy1CqztgoQcCozHkTL1K6dkcJO5oDdn+9A9vOrHmi5Y=; b=IqXcQAX36qWuX49LtFrDsskLBhM94zBEssBOhG2sGiOe0CLdAVzH04X/Y66s45gozP EdayxTySp9XDGnQXE+w5wuwH9ttnyYPrqOHOxT3HhyrfzTj0y0c1StxX08dMpyJdZ1Tl Sp0R0gsIFXckYdsQ6LvtHyIQRsHiHdaZLeRd2mVvqVLFfD8OGsR/uSdTJ46b/Ad/kpZ7 kCqK9mY/+jURBTCdPf1rRJrIyAuVU/oe9KYSAGHvDjENbTt8PKOpeNCCZ3siQ/QeHzY5 daIZP07Ye0KOJUagX1gCdKJcSXEwJAUj4B5G7F9p4guwr3lQ+eNHofcOjkADyiCojp2f 4sBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Mq0KFbpL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si2826277oix.109.2020.02.14.07.40.45; Fri, 14 Feb 2020 07:40:57 -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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Mq0KFbpL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387451AbgBNPkD (ORCPT + 99 others); Fri, 14 Feb 2020 10:40:03 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40470 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729444AbgBNPkD (ORCPT ); Fri, 14 Feb 2020 10:40:03 -0500 Received: by mail-lj1-f195.google.com with SMTP id n18so11223626ljo.7 for ; Fri, 14 Feb 2020 07:40:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=uy1CqztgoQcCozHkTL1K6dkcJO5oDdn+9A9vOrHmi5Y=; b=Mq0KFbpLoF9RH+Q6+bpFpQUbThxc7670g4NmcANUlhxvng9ufszICF8xEA10dOqyvg sYpkFypNrcfijcqbmimN8MTI24oUlCmnJlLw8OLen6BekOa/Hj6Gh2gXFAotHK5ouAlZ hS9+xuWgLAPFIEW43m1yXgPgJoa9tt8RrsCcpwjCvlP3of9LrTGfLV4SeUO6NIdkqJDm KM/CrpG7ab5yoOr3w8MpB+OAAwSpQc5ICXjgo238k5xIHZVmgvvBceJT5Fhy9PQqneCb fulT7PRZFeOLhom9RUoYK8V5zWKeQv4wXTuMF/rX7ZZpc2+gZs795fVMZCaPkUuRFpvx q4eg== 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; bh=uy1CqztgoQcCozHkTL1K6dkcJO5oDdn+9A9vOrHmi5Y=; b=pWuqsQgnLNeG18LKwu0k1ccHhtAS7Rpd20yaVCoxjHLZgR/B/L8BEERwcs5UNAKk0B 5w4aY7UoOs7oCU8xjmi9zW+pr5Wig7pVhXQd6m/Pq8yNGvpLlqoVA9d8lqo8f3e6CTGH mxTCIqK+CVLdL8TyiHyZinXpgaBV/vBK9aLVUnpz8j38kaAgaeVsGZ/bltIoQecL4Ndv 0/fyojDfJmFkzyYVirezlHzKOCcQy2BU+6Dwyk51X1LZ8+Ru89XvXdHCzH/Y5iy2SOLp gPXxWjmrQdNa5VHQkKNwNi9ewydOLzMMsLppXcIxcZreDDUBJLmcBO9XKMfVLmOPyDqQ v4xw== X-Gm-Message-State: APjAAAWHGA7YhZ8dTGLfbYMrmm8eNC9luRiizmXs2XwC2hxeaGHGT5ep hyCPYgBRYAQT7yi+H9k+OqmQGA== X-Received: by 2002:a2e:300e:: with SMTP id w14mr2482342ljw.222.1581694801044; Fri, 14 Feb 2020 07:40:01 -0800 (PST) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id r9sm3835738lfc.72.2020.02.14.07.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2020 07:40:00 -0800 (PST) Received: by box.localdomain (Postfix, from userid 1000) id 0CFDA100F30; Fri, 14 Feb 2020 18:40:21 +0300 (+03) Date: Fri, 14 Feb 2020 18:40:21 +0300 From: "Kirill A. Shutemov" To: Yang Shi Cc: Hugh Dickins , kirill.shutemov@linux.intel.com, aarcange@redhat.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [v2 PATCH] mm: shmem: allow split THP when truncating THP partially Message-ID: <20200214154021.kgeon6i76yfdbaa5@box> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). -- Kirill A. Shutemov