From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by kanga.kvack.org (Postfix) with ESMTP id 8FD276B0253 for ; Fri, 15 Dec 2017 04:29:02 -0500 (EST) Received: by mail-wr0-f199.google.com with SMTP id t92so4738500wrc.13 for ; Fri, 15 Dec 2017 01:29:02 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id p13si4465455wre.321.2017.12.15.01.29.01 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 15 Dec 2017 01:29:01 -0800 (PST) Date: Fri, 15 Dec 2017 10:28:59 +0100 From: Michal Hocko Subject: Re: [RFC PATCH 1/3] mm, numa: rework do_pages_move Message-ID: <20171215092859.GT16951@dhcp22.suse.cz> References: <20171207143401.GK20234@dhcp22.suse.cz> <20171208161559.27313-1-mhocko@kernel.org> <20171208161559.27313-2-mhocko@kernel.org> <20171213143948.GM25185@dhcp22.suse.cz> <20171214153558.trgov6dbclav6ui7@node.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171214153558.trgov6dbclav6ui7@node.shutemov.name> Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: linux-mm@kvack.org, Zi Yan , Naoya Horiguchi , Vlastimil Babka , Andrew Morton , Andrea Reale , LKML On Thu 14-12-17 18:35:58, Kirill A. Shutemov wrote: > On Wed, Dec 13, 2017 at 03:39:48PM +0100, Michal Hocko wrote: [...] > > + err = 0; > > + if (page_to_nid(page) == node) > > + goto out_putpage; > > + > > + err = -EACCES; > > + if (page_mapcount(page) > 1 && > > + !migrate_all) > > Non-sensible line break. fixed > > + goto out_putpage; > > + > > + if (PageHuge(page)) { > > + if (PageHead(page)) { > > + isolate_huge_page(page, pagelist); > > + err = 0; > > + } > > + } else { > > Hm. I think if the page is PageTail() we have to split the huge page. > If an user asks to migrate part of THP, we shouldn't migrate the whole page, > otherwise it's not transparent anymore. Well, as I've said in the cover letter. There are more things which are worth considering but I've tried to keep the original semantic so further changes should be done in separete patches. I will work on those but I would prefer this to stay smaller if you do not mind. > Otherwise, the patch looks good to me. Thanks for the review -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org