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 X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52575C2BBC7 for ; Tue, 14 Apr 2020 11:42:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 316D520775 for ; Tue, 14 Apr 2020 11:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586864560; bh=ViZOfxU9necVMCY1BP/asdqX0yla09KpWsyKxzRLpd8=; h=Subject:To:Cc:From:Date:List-ID:From; b=tBdBx9QlUpMly8KG6OZ0/0NHUqsVvefURXxMr6x/Rfgwd4ZOB6EU9nTq63N8zW/0s OuDDmLvG0qFBc+RSqFVYQvHatUtF6ABiv1fMA72XffS6ZOrSLqRz9pV604OV54y2ck UH/F7v8sobmDh2Ejrvs75NKdK4u5gshqD+V4US3g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439481AbgDNLmj (ORCPT ); Tue, 14 Apr 2020 07:42:39 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:60095 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439471AbgDNLme (ORCPT ); Tue, 14 Apr 2020 07:42:34 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 69C4A99C; Tue, 14 Apr 2020 07:42:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 14 Apr 2020 07:42:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=kLcoCG OyEfLVl7BhbstmXuyqf2CtlflIwT7wRgqFq1s=; b=L6JAGtBWusWW0k3vqGJqlf Mf1XiPScsEPt3r2OGi1FtTDbS1yQYEY6SD6Mv10mhfz0qq2wocAJn1ke0Mkk/cRI PnwbWBI/9zJyz6fyhIhPrbyNkUqq3N6qcFL5/b+/8kdIalD+9TqF4G1JnE9ku3ou wkgmN4XTjo+3Ld9E0hJy4q2xgSnGaKey8zVYPn1c3bcRVrMNnXRQeFjxf42TvUwJ pEkScWcZT/hmzA/kzOzOHcInbk2D6MSJYatGHzvHael4ChlnEI/bU+ltBVY3n+S9 eMnPcDKmtuVkjQyh69vLGh/8G6n6v2JKBzObTtgVVLmJrjGMeHXUzXCzKcRcvSSg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfedugdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeekfedrkeeirdekledrud dtjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehg rhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 90B66306005B; Tue, 14 Apr 2020 07:42:32 -0400 (EDT) Subject: FAILED: patch "[PATCH] erofs: correct the remaining shrink objects" failed to apply to 4.19-stable tree To: xiang@kernel.org, gaoxiang25@huawei.com, stable@vger.kernel.org, yuchao0@huawei.com Cc: From: Date: Tue, 14 Apr 2020 13:42:24 +0200 Message-ID: <158686454410133@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.19-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 9d5a09c6f3b5fb85af20e3a34827b5d27d152b34 Mon Sep 17 00:00:00 2001 From: Gao Xiang Date: Wed, 26 Feb 2020 16:10:06 +0800 Subject: [PATCH] erofs: correct the remaining shrink objects The remaining count should not include successful shrink attempts. Fixes: e7e9a307be9d ("staging: erofs: introduce workstation for decompression") Cc: # 4.19+ Link: https://lore.kernel.org/r/20200226081008.86348-1-gaoxiang25@huawei.com Reviewed-by: Chao Yu Signed-off-by: Gao Xiang diff --git a/fs/erofs/utils.c b/fs/erofs/utils.c index 4396b424373f..52d0be10f1aa 100644 --- a/fs/erofs/utils.c +++ b/fs/erofs/utils.c @@ -262,7 +262,7 @@ static unsigned long erofs_shrink_scan(struct shrinker *shrink, spin_unlock(&erofs_sb_list_lock); sbi->shrinker_run_no = run_no; - freed += erofs_shrink_workstation(sbi, nr); + freed += erofs_shrink_workstation(sbi, nr - freed); spin_lock(&erofs_sb_list_lock); /* Get the next list element before we move this one */