Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5781488pxu; Thu, 22 Oct 2020 10:51:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAxdo+H6qArvHBRygfnK7hw3sJgiYtsEs4M3diqHy92mzU9DAYZMraCPqP617DJSp1k9gp X-Received: by 2002:a17:906:ca54:: with SMTP id jx20mr3570348ejb.541.1603389113443; Thu, 22 Oct 2020 10:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603389113; cv=none; d=google.com; s=arc-20160816; b=PPohWMCet3p3dWTjVJoWhJUOlaeen9fQslZgFFkVSxcw4rOWKJb5YU112846SmI54a XmA2tkBEW+PVOpA5duDehSTO4FPWapr67RzIDvu5HWnBV7bJC3/qmp3mSHsHKlpQ3/wA i5R64xJIvO/Tl1TavSqleQLyW19PautzgTyT5+NTmxTO0bYHlWPprKk/Yl13EDrV4Clk PLbNHFiYvyNWn6wJoKeWxyQYgoz/7uyApDn8pE8h+BAwrhorVRcS291SeRaTXeiC1eiy slT9YBQH8fWhUEl0vsrFniUOC7hkToX6zzOa+xb4mexjPYMz9ktmixl8i7LHCdU4pal9 Lsxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=zwvCVywwXJPAfIYLckNHNuWz6WV1ugE9tkAOhdwuh+Q=; b=xm8HUiCwTFWbAZxCCaTk5acCrJML6P165inkjih5YMJgaWrIZTclPv9bXTKBAQeOAp iOjt0+ipyRXFHPw48ovzGtlwfwrKke97MliFNSm5ucDwTEVEfo26bnashyOV22Kw9agA kORXANihsd3sj36nP1IvZfiCuR8shxw75B19mA69KWfu8dBCEgMy0W1wfKadYx70fEE+ VIf1Zz+RWPW3mxX9C/nBY5cJSJLKHGzNLjWyCARmmKMtsbxvUjHsMv6YfWw5UEvvyO9x muw+SkkBykKAqtWncw++DEWCvQXS1m+BO/PnUztOqGq5CUOiEJ7nGeDP+gSAKx3mm7nr +i6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=KPVI26Pf; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si1603719eji.706.2020.10.22.10.51.31; Thu, 22 Oct 2020 10:51:53 -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; dkim=pass header.i=@aol.com header.s=a2048 header.b=KPVI26Pf; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2508256AbgJVO5t (ORCPT + 99 others); Thu, 22 Oct 2020 10:57:49 -0400 Received: from sonic305-20.consmr.mail.gq1.yahoo.com ([98.137.64.83]:40787 "EHLO sonic305-20.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2505913AbgJVO5s (ORCPT ); Thu, 22 Oct 2020 10:57:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1603378667; bh=zwvCVywwXJPAfIYLckNHNuWz6WV1ugE9tkAOhdwuh+Q=; h=From:To:Cc:Subject:Date:References:From:Subject; b=KPVI26PfB2zvjqVtYl+hsGKEYFFkRf+eH1d/yODVyn2WtY5864tg5tv1jZs88BGYRRFUv7UMtJAgn9oOJrli2z4kxk9FW8U1aeu/v1GCbexQtmwqToI550kDqeW7F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9NsL6fZZAWrcOiw01l2HQlKlnnk_BEMi_ZqHmjZQqOyEAccSm_cu2.6NDxlOn 9yWAAfXq88vz7ePnu4293IsmTX7hbPX9QUajS Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Thu, 22 Oct 2020 14:57:47 +0000 Received: by smtp401.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 354b2034a70b817070abfec37b60849b; Thu, 22 Oct 2020 14:57:44 +0000 (UTC) From: Gao Xiang To: linux-erofs@lists.ozlabs.org Cc: Chao Yu , Chao Yu , LKML , Gao Xiang , stable@vger.kernel.org Subject: [PATCH 1/4] erofs: fix setting up pcluster for temporary pages Date: Thu, 22 Oct 2020 22:57:21 +0800 Message-Id: <20201022145724.27284-1-hsiangkao@aol.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit References: <20201022145724.27284-1-hsiangkao.ref@aol.com> Content-Length: 962 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gao Xiang pcluster should be only set up for all managed pages instead of temporary pages. Since it currently uses page->mapping to identify, the impact is minor for now. Fixes: 5ddcee1f3a1c ("erofs: get rid of __stagingpage_alloc helper") Cc: # 5.5+ Signed-off-by: Gao Xiang --- fs/erofs/zdata.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index 50912a5420b4..86fd3bf62af6 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -1078,8 +1078,11 @@ static struct page *pickup_page_for_submission(struct z_erofs_pcluster *pcl, cond_resched(); goto repeat; } - set_page_private(page, (unsigned long)pcl); - SetPagePrivate(page); + + if (tocache) { + set_page_private(page, (unsigned long)pcl); + SetPagePrivate(page); + } out: /* the only exit (for tracing and debugging) */ return page; } -- 2.24.0