Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3283989imw; Mon, 11 Jul 2022 05:52:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v80m70L3jM5el1/bd6Jb2QuKVq0/jfPIQJmSLYgfODR8KWlbd6Uw/6lFL9Hue1LJjbZGBe X-Received: by 2002:a17:90a:c091:b0:1ef:b87f:e058 with SMTP id o17-20020a17090ac09100b001efb87fe058mr17829871pjs.128.1657543934301; Mon, 11 Jul 2022 05:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657543934; cv=none; d=google.com; s=arc-20160816; b=1D3B+4bsTaugLA+/RWK6LLnIg++YK4WwII6z9JaKGSazqTKuQXM+SUFYGZoq4EAYuC AMQPBAPzgcFLGlyAfeyGqiUF37+qyVlOqsAaoVXBDTU3fnZw83Pd++uyFjD5tIv0G3wu 3CR2IyYjbJjlpvWrlC9aiud/MKLhyIoOOUfo3nvUfn/ghl6+5vYAtuQ7Q8bu9rplnGA5 ebpPxZm8ov7TCHpMHIT/FtkzfPE6HV9ueCZAkduNJoiaZyDPIp01RZK3neIAuD5RDOxc 3Y7PhR8kTQqSdNFdL6LqbPto+fbEBpBLbMpjZXuKKqrkmQmBU21MsEXL3IQGP0Dpmenf XZpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=TdFY1RWwGYvBePPQsPedAbt4Dp/hBwt/0QCbIDf8xuw=; b=c/GiEUBWVVFykgSZb6aUgrW3d11/2X3CBvbQ9DAFzjTY+Wk+0Cp9/5XbETnaPixGIa Wl8hyE1Ww0Wnbiw09YqCEAPKqga9K18sbzSY+BIY8tHYTc5Qn6mur+90J5lh81jOoL0T GK5ydJrbK6mSCTnENNh1MTHQAX2XCclfp7u5hxVbvRBrIuXCiM4GfHJis0BGScafzvK9 IJzeJZ4dHt4wMRf3sBGCHpBz8w1g25acdgpsjiQTrrmUpbCb4pKw1/3MPvKNlbYts86I Hf7ag1FzisUud4/2yDiWECdQBDln/sSQHzEBUOLyncYhFlIOOiM+xJ6UdWCBPNVsAGpV tc6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="xSvia/5k"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l191-20020a6391c8000000b0040d3169289esi9615861pge.445.2022.07.11.05.52.01; Mon, 11 Jul 2022 05:52:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="xSvia/5k"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230176AbiGKLwq (ORCPT + 99 others); Mon, 11 Jul 2022 07:52:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbiGKLwh (ORCPT ); Mon, 11 Jul 2022 07:52:37 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1367123BE6 for ; Mon, 11 Jul 2022 04:52:37 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B5926202F3; Mon, 11 Jul 2022 11:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1657540355; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TdFY1RWwGYvBePPQsPedAbt4Dp/hBwt/0QCbIDf8xuw=; b=xSvia/5kjnsgiJTeS1+fnuBLnvUcBv36rtCfS7WIITz0oa/2oUbO7QBdPgDJHRbsnLAu23 OSZjd7R4m+dDBcrCfboDKQHUGndAsgjHGUvh0Uu3f6p7D2TZmyrvUeDFXAyglK7odwySjF F6WQwSEPc6GZPis4SvofV6als9x5WYc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1657540355; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TdFY1RWwGYvBePPQsPedAbt4Dp/hBwt/0QCbIDf8xuw=; b=nadu+SnQgfvxOj2JXvvu2dsqQgtx7xswMcDR1BVYnm2uo/8CuykxWfZV2Uwk1sdX3uOYI8 58A41V7jd8QdtaBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8B75413524; Mon, 11 Jul 2022 11:52:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8fjpIAMPzGK1fwAAMHmgww (envelope-from ); Mon, 11 Jul 2022 11:52:35 +0000 Date: Mon, 11 Jul 2022 13:52:34 +0200 From: Oscar Salvador To: Huang Ying Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Baolin Wang , Zi Yan , Yang Shi Subject: Re: [PATCH -V2 1/7] migrate: fix syscall move_pages() return value for failure Message-ID: References: <20220711084948.274787-1-ying.huang@intel.com> <20220711084948.274787-2-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220711084948.274787-2-ying.huang@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 11, 2022 at 04:49:42PM +0800, Huang Ying wrote: > return store_status(status, start, node, i - start); > @@ -1768,8 +1768,12 @@ static int do_pages_move(struct mm_struct *mm, nodemask_t task_nodes, > > err = move_pages_and_store_status(mm, current_node, &pagelist, > status, start, i, nr_pages); > - if (err) > + if (err) { > + /* We have stored status of page i */ IMHO, "We have accounted for page i" gives a more clear statement. Reviewed-by: Oscar Salvador > + if (err > 0) > + err--; > goto out; > + } > current_node = NUMA_NO_NODE; > } > out_flush: > -- > 2.30.2 > > -- Oscar Salvador SUSE Labs