Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1130712lqh; Sun, 5 May 2024 18:38:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+AKChjI6D/uClXhqFwkurJBqVka4AfRIBOYda6NV+jZXlV68eAMOHWTa8UA0fcK398urYkgXvs8kaob1wQEnaqzYpE/jRYBnG5F7DFQ== X-Google-Smtp-Source: AGHT+IFtK/1rjOsLkOKeE5d73ein83WY+gYp+hUMLdjeOO90pe9eI0emw+E13CZTdfmAI7GhY9u4 X-Received: by 2002:a17:907:9482:b0:a59:b5a6:65c7 with SMTP id dm2-20020a170907948200b00a59b5a665c7mr3150800ejc.3.1714959524994; Sun, 05 May 2024 18:38:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714959524; cv=pass; d=google.com; s=arc-20160816; b=kc+1xs1Cj8ZmswCy5It4WHW1tJ4gfRupoBssLTYE0o9P4C6w5yu/bTiVr9ItTs4qQd 8lJH2Q1N/5QgBgxGU/MDK4D8SRPGXS/ov6yLmL3osqOYwJQ7o66YOUa6dRmS4wIFASfa Y/81hh48VKaNxDN724eIJk3+NWfhL+g/wMeOboL8bnLxseGWentgyc8f90oIhIc1xLsD gFMM6GhuFlOhbjcrZBvlWM+V1xmkq6xRvICLI8H145rih38A+e+45TxJGNliuodhaNNE Nt70tqkBqQgCp5a88EbqG2LmwnjdDQZWc1L3R2T/miR6GiqIiuSJyiQCz5t6Qr42GKTC 2IYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=oOh2DNq/ALKOxEFuNcYkdDLDowhusytPK/KkdWzJoKI=; fh=XEHhcdA3crvUkUXS7itYrqQy2ZG3Udc4sIMF7Q9Y4OA=; b=NxNsCUuPYmQlJPiU2OXv2C21pC7MI13BQ1Zp02b144vX3M9yrZ+PRJA66daKSWoSx2 Uwv5nhQjY7xQeruUZIP0MXHPN3ZkpO3gU1SyYtOtkKdTfJoQiZZ5BeBi1pzPT9g8JXw0 Rwb15TM4oFYuYSrboOxgqzowa/XTE0xL5gAkUo/4H/sg7TVoGDI03JtLwNKBxGvE+17V F4n41Q8usvwWbLk5iWwYQJsVxQNVtKA/PA/vjKxJbe9nwxUPEC9vI6GY+vQ8GSuYXCIo af3wOGdmjf0aHqeEAKUZ2PEVN9VdJ4fdIXx7EeAPaWCMwlKYKk5+c+FpjYFObxLkzlDB l/4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-169236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169236-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e15-20020a1709062c0f00b00a59b2bc8bd9si1924809ejh.350.2024.05.05.18.38.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 18:38:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-169236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169236-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B69271F2122D for ; Mon, 6 May 2024 01:38:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E0BE3D966; Mon, 6 May 2024 01:38:35 +0000 (UTC) Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5AF62FB6; Mon, 6 May 2024 01:38:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714959514; cv=none; b=pV1bksU5DSXuksZv1LjKlFj3Wqv9L4foeJXzxK+m/1Ttey7Eb67oUGRNGwYy7a7Y5f7T5BCMIRQGDfZMZmwjFHfB/z+QoGvrNdzzG4jxOkXLYq34FbL/ptcm73X5lM1cMfW6x2DaLP9fq4Iws3nt9+L1naGpgBsTBx3hAyjZOts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714959514; c=relaxed/simple; bh=oOh2DNq/ALKOxEFuNcYkdDLDowhusytPK/KkdWzJoKI=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=qDh64SWHeZiWJfq+aQEKG3hIkws1PV898YyBkesG281et+kSi3pf5eTmp+ZWEJK5+wABAKOmwB++cj9HU3qM5MfeijbK/o3cgXzqlEbPkSb9FbwyiyiiwBS0Irn7him4Z4OONxc/pwkA0gKeMmEzf3815WbAnOXDK6oBBiodTXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4VXkZQ40CGz4f3khk; Mon, 6 May 2024 09:38:22 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id A83DB1A058D; Mon, 6 May 2024 09:38:30 +0800 (CST) Received: from [10.174.178.129] (unknown [10.174.178.129]) by APP1 (Coremail) with SMTP id cCh0CgDX8QqWNDhmj06CLw--.5810S2; Mon, 06 May 2024 09:38:30 +0800 (CST) Subject: Re: [PATCH 06/10] writeback: Factor out code of freerun to remove repeated code To: Tejun Heo Cc: willy@infradead.org, akpm@linux-foundation.org, jack@suse.cz, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20240429034738.138609-1-shikemeng@huaweicloud.com> <20240429034738.138609-7-shikemeng@huaweicloud.com> From: Kemeng Shi Message-ID: <9e18efb9-881e-d8ee-4acf-5e05f4c223ea@huaweicloud.com> Date: Mon, 6 May 2024 09:38:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit X-CM-TRANSID:cCh0CgDX8QqWNDhmj06CLw--.5810S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUU5R7kC6x804xWl14x267AKxVW8JVW5JwAF c2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII 0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xv wVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4 x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG 64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r 1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67vI Y487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI 0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y 0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Zr0_Wr1UMIIF0xvEx4A2jsIE14v26r1j6r4U MIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07UX4SrUUU UU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ on 5/2/2024 1:15 AM, Tejun Heo wrote: >> +/* >> + * Throttle it only when the background writeback cannot >> + * catch-up. This avoids (excessively) small writeouts >> + * when the wb limits are ramping up in case of !strictlimit. >> + * >> + * In strictlimit case make decision based on the wb counters >> + * and limits. Small writeouts when the wb limits are ramping >> + * up are the price we consciously pay for strictlimit-ing. >> + */ > Can you please reflow the above to 80col or at least seventy something? Sure, will do it in next version. Thanks.