From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40724C83F2E for ; Thu, 31 Aug 2023 07:17:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237694AbjHaHRw (ORCPT ); Thu, 31 Aug 2023 03:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235662AbjHaHRw (ORCPT ); Thu, 31 Aug 2023 03:17:52 -0400 X-Greylist: delayed 165 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 31 Aug 2023 00:17:46 PDT Received: from out-251.mta0.migadu.com (out-251.mta0.migadu.com [91.218.175.251]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0039E1A4; Thu, 31 Aug 2023 00:17:45 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1693466264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DFazo8t+x34pBbM7FhZAQZ14ar3Xb4GsuBZugiC8qbg=; b=TmoDr3ge1UyYX8ugRY7XZkb1xippW67sMxQbI3dFiX3Dbs/J/HBs2sO7VWfWEzPmxOfLQe irrOtXTt8xSQ97Xkijkm0FIC9OgQEr/Td6ezNmKG3h7hR9QGia9r5MoB5IEtbw4+D4m6uq CfCbsYqz98UwThxz+SvZ0LkR7PL5hUE= Mime-Version: 1.0 Subject: Re: [PATCH 2/3] use nth_page() in place of direct struct page manipulation. X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230830182753.55367-3-zi.yan@sent.com> Date: Thu, 31 Aug 2023 15:17:15 +0800 Cc: Linux-MM , LKML , linux-mips@vger.kernel.org, Andrew Morton , Thomas Bogendoerfer , "Matthew Wilcox (Oracle)" , David Hildenbrand , Mike Kravetz , "Mike Rapoport (IBM)" Content-Transfer-Encoding: 7bit Message-Id: <50EF53C6-0CE2-4256-B8AB-AE9BF290419D@linux.dev> References: <20230830182753.55367-1-zi.yan@sent.com> <20230830182753.55367-3-zi.yan@sent.com> To: Zi Yan X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org > On Aug 31, 2023, at 02:27, Zi Yan wrote: > > From: Zi Yan > > When dealing with hugetlb pages, struct page is not guaranteed to be > contiguous on SPARSEMEM without VMEMMAP. Use nth_page() to handle it > properly. > > Signed-off-by: Zi Yan > Reviewed-by: Muchun Song It's better to add a Fixes tag to the commit 38c1ddbde6. Thanks.