Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp606324pxv; Fri, 9 Jul 2021 05:25:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBY7tf/lvAZzq1qzBl6FO94JYuG81zPEfvCNWKNxnO2QD15l+ndBPJAL72+qOC4fwoBa6f X-Received: by 2002:a05:6638:c4a:: with SMTP id g10mr5876358jal.21.1625833515802; Fri, 09 Jul 2021 05:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625833515; cv=none; d=google.com; s=arc-20160816; b=gEaY/gO7pwXxGZz0PUhsvKUxg2xbXmAhlR7Oqba3VQOIl85J/4clIUthjGiW4Lov6y lUWlHSMHIMvlirWEQIbtCTC9c9fogc/5DxuIhjxNdzu545OXFqp7ZgRLZ30xS+Ryi86G lgXCKJ/6ObZQ6skKIUsCDZFRMBVI15Ty4/fwRyjJcq7fi+BFBDIaTtEn9BspCrBFmCk0 /my3P+tMXUSw3ZFX3hLLjlvw1yLva9/uk4IlERW/ZGio1uyki+DA2EeU9sN9IYBOwklK D6XACZzD12AoyASXfIETDMqyX92qVXDJqYyLrsj3NFICsXSOkVs1+1ldpIz5JPD6T0r4 FIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=kDQdRKY9gzZxeJRsVYBQJoPKiNR0fmy6P0JT+PKpoMk=; b=IS8woRogOwAgpFXgT82tIlzQ50FklsifEM5BULIA2iwiVAPR80G5uJtSJV8ktnr/SX OHyszjQMGL7y3UG32atz1nqyqAfcf5HkvloaXuKg8+Iz6ZfKoBPzhJt8GBc1vKdDmz7H Zrt5bNGYGwCWv/0tacb2J/ttUlYVrjujm8fV/BjPC/nHe2KsO8tNJGHkSo1M4qmJq1+s fP0OGCb/hbJQJGNc0CTmqu/cAmQJA1cKtcOlslFqF7ErhHDU1YNj9dJo2MFCtrEE0MM5 s7IrAp+T8LEg/0QPk5tCUdt+fLN7IeCWsXq2NqEUDo4QhC2eFKNL+P4dTLRtZMsNtYDF GUHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w25si4523543jaq.39.2021.07.09.05.24.39; Fri, 09 Jul 2021 05:25:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231274AbhGIMZL (ORCPT + 99 others); Fri, 9 Jul 2021 08:25:11 -0400 Received: from outbound-smtp11.blacknight.com ([46.22.139.106]:45145 "EHLO outbound-smtp11.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbhGIMZL (ORCPT ); Fri, 9 Jul 2021 08:25:11 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp11.blacknight.com (Postfix) with ESMTPS id EB69F1C5E40 for ; Fri, 9 Jul 2021 13:22:26 +0100 (IST) Received: (qmail 7021 invoked from network); 9 Jul 2021 12:22:26 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.255]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 9 Jul 2021 12:22:26 -0000 Date: Fri, 9 Jul 2021 13:22:25 +0100 From: Mel Gorman To: Yanfei Xu Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mm/page_alloc: correct return value when failing at preparing Message-ID: <20210709122225.GZ3840@techsingularity.net> References: <20210709102855.55058-1-yanfei.xu@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210709102855.55058-1-yanfei.xu@windriver.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 09, 2021 at 06:28:54PM +0800, Yanfei Xu wrote: > If the array passed in is already partially populated, we should > return "nr_populated" even failing at preparing arguments stage. > > Signed-off-by: Yanfei Xu ff4b2b4014cb ("mm/page_alloc: correct return value of populated elements if bulk array is populated") -- Mel Gorman SUSE Labs