Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758808AbbKSQqS (ORCPT ); Thu, 19 Nov 2015 11:46:18 -0500 Received: from mx2.suse.de ([195.135.220.15]:40298 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758131AbbKSQoR (ORCPT ); Thu, 19 Nov 2015 11:44:17 -0500 Subject: Re: [PATCH 3/5] mm, page_owner: copy page owner info during migration To: Hugh Dickins References: <1446649261-27122-1-git-send-email-vbabka@suse.cz> <1446649261-27122-4-git-send-email-vbabka@suse.cz> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joonsoo Kim , Minchan Kim , Sasha Levin , "Kirill A. Shutemov" , Mel Gorman From: Vlastimil Babka Message-ID: <564DFC5C.2090103@suse.cz> Date: Thu, 19 Nov 2015 17:44:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1273 Lines: 33 On 11/08/2015 10:29 PM, Hugh Dickins wrote: > > Would it be possible to move that line into migrate_page_copy()? > > I don't think it's wrong where you placed it, but that block is really > about resetting the old page ready for freeing, and I'd prefer to keep > all the transference of properties from old to new in migrate_page_copy() > if we can. OK, makes sense, will do in v2. > But check how that behaves in the migrate_misplaced_transhuge_page() > case: I haven't studied long enough, but I think you may have been missing > to copy_page_owner in that case; You're right, I missed that path :/ > but beware of its "fail_putback", which > for some things nastily entails undoing what's already been done. Yeah, I think I don't need to reset page owner info in the fail_putback path, for the same reason I don't reset it from the old page when migration is successful. The page is going to be freed anyway, and if it somehow hits a bug before that, we will still have something to print (after patch 5). Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/