From nobody Thu Nov 28 08:53:52 2024 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8A5E1CF7CD for ; Wed, 2 Oct 2024 12:24:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727871859; cv=none; b=QEisqrHZ6UxcMkOfp3PnfVENkh00uDvnpXrbQN+GbJ/yM3shW1jdHWG8WvFbTh88xPef9NIc+T/NiFgyFBluLG+MrWx8WxjIIEZF1M2WAiLKMH9GHVm9AJY+9J0yFOUqyTPUgzscJXxFo6SWr7Im7Z7ruMI30V+5LnViFdWzaD8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727871859; c=relaxed/simple; bh=AXfgQFgrYOWrr1JI0a2AUh317kck3OzTKiZdxvH344w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bGraE1ggcxpzo/pXRaJ2Mwwt1Y6wNxAhH5wzqalBovQGPiOk+Fu4xuYnvjstFXnK1uu7+GEI9i4kFTHNH7OV2Tg0ReEPj3UT26nN4Mqa0+E2n+J+9mrItufMXlc9h2lAz4NMsq4hwvUwVxI/D6qPihLfeFnL6IP/nHyVWC2DYEg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=X5COiSNU; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="X5COiSNU" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-20b4a0940e3so49111755ad.0 for ; Wed, 02 Oct 2024 05:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1727871857; x=1728476657; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kA+m8L+34Dl8O49FU4PLpLTBcMA/CbhBqEQpr8t9PhM=; b=X5COiSNUO1jubtf/RZP48gYL1T72GZ1N1vpOIcu0pP1dsbIoXUytpRCqGYyIjg9tRa mIKpaWwA40Vztnd6p8o7HWfnHCsnBjY5K49Nd3Adl/kWIo5sFCWVFXV1ZWe5C55Oq9sp ah9/6cIWPalpq2Nph6xU0F12xD3nSTkqhXXHmJ0oinNh41q+cI4AhPB/Pok5Uv7SFNxT lplA5vMI/PuPkArhqGhs+K1gE1UykR4hjmOwo0pa95HPyMpcOwW2M+PiRiuKQJWDzei5 KdgQHRAIy22a1nu9n0AiRc2QgYfAvOo2WzuUe5AmuUtLgqmKJkpm2Sg6BUBJIB8VCslj PiGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727871857; x=1728476657; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kA+m8L+34Dl8O49FU4PLpLTBcMA/CbhBqEQpr8t9PhM=; b=PX3yRePonJJfMq2dpPzo9bYj8dyfVu8CrI7evRO5Rverd0OiEKbwXnJoXU2lvjj3dM bByvAWw/6p3EzR7gu6otKlj04X1OydoWFnqvtbh7DNkRtO3mZ5r9kJLmXMBsC0CNTLPV D1cKxDEr5yHB5HFT3EpiPJJq0pcRW4htZLb+8Yv3D9//5p6yB/q7VJXDYxQNZ0zplR/F 4XN7aHF5nTM7vhrkt4z+POATfGItceoGsnPUVAM+YEL6Z3k/p+lyUAxHt651zKEoG6Y+ puS+vmrPF0nJkb0MMflSZkIRJBM8IOuXlhuwehOx+haaCtvoJyzm9QDT5evCjYvqMZtp ZFuQ== X-Gm-Message-State: AOJu0Ywt+JxnxQ/Kb6v80xSIVqp3SSXb+hksUkBD1fCCTAxJcDpzzfbi 22lNxxp7K3GG7NfnP59QdGQeTwBW3aHd2oT/FtFe2HbQtNGO5gWIJMmMXFgjugY= X-Google-Smtp-Source: AGHT+IGt1z9+omq+f5JaU2ZY1Ce+XkUfn+29/8n0xvI3+pkAWKeOkerZ/xgR4+AORmpbU5JcYBBz7Q== X-Received: by 2002:a17:902:da8e:b0:20b:9062:7b08 with SMTP id d9443c01a7336-20bc5a94f9dmr46308555ad.45.1727871857345; Wed, 02 Oct 2024 05:24:17 -0700 (PDT) Received: from localhost.localdomain ([143.92.64.18]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20b37e33852sm83508625ad.199.2024.10.02.05.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 05:24:16 -0700 (PDT) From: Tang Yizhou X-Google-Original-From: Tang Yizhou To: willy@infradead.org, akpm@linux-foundation.org, chandan.babu@oracle.com Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, Tang Yizhou Subject: [PATCH 1/3] mm/page-writeback.c: Rename BANDWIDTH_INTERVAL to UPDATE_INTERVAL Date: Wed, 2 Oct 2024 21:00:02 +0800 Message-Id: <20241002130004.69010-2-yizhou.tang@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241002130004.69010-1-yizhou.tang@shopee.com> References: <20241002130004.69010-1-yizhou.tang@shopee.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Tang Yizhou The name of the BANDWIDTH_INTERVAL macro is misleading, as it is not only used in the bandwidth update functions wb_update_bandwidth() and __wb_update_bandwidth(), but also in the dirty limit update function domain_update_dirty_limit(). Rename BANDWIDTH_INTERVAL to UPDATE_INTERVAL to make things clear. This patche doesn't introduce any behavioral changes. Signed-off-by: Tang Yizhou --- mm/page-writeback.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index fcd4c1439cb9..a848e7f0719d 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -54,9 +54,9 @@ #define DIRTY_POLL_THRESH (128 >> (PAGE_SHIFT - 10)) =20 /* - * Estimate write bandwidth at 200ms intervals. + * Estimate write bandwidth or update dirty limit at 200ms intervals. */ -#define BANDWIDTH_INTERVAL max(HZ/5, 1) +#define UPDATE_INTERVAL max(HZ/5, 1) =20 #define RATELIMIT_CALC_SHIFT 10 =20 @@ -1331,11 +1331,11 @@ static void domain_update_dirty_limit(struct dirty_= throttle_control *dtc, /* * check locklessly first to optimize away locking for the most time */ - if (time_before(now, dom->dirty_limit_tstamp + BANDWIDTH_INTERVAL)) + if (time_before(now, dom->dirty_limit_tstamp + UPDATE_INTERVAL)) return; =20 spin_lock(&dom->lock); - if (time_after_eq(now, dom->dirty_limit_tstamp + BANDWIDTH_INTERVAL)) { + if (time_after_eq(now, dom->dirty_limit_tstamp + UPDATE_INTERVAL)) { update_dirty_limit(dtc); dom->dirty_limit_tstamp =3D now; } @@ -1928,7 +1928,7 @@ static int balance_dirty_pages(struct bdi_writeback *= wb, wb->dirty_exceeded =3D gdtc->dirty_exceeded || (mdtc && mdtc->dirty_exceeded); if (time_is_before_jiffies(READ_ONCE(wb->bw_time_stamp) + - BANDWIDTH_INTERVAL)) + UPDATE_INTERVAL)) __wb_update_bandwidth(gdtc, mdtc, true); =20 /* throttle according to the chosen dtc */ @@ -2705,7 +2705,7 @@ int do_writepages(struct address_space *mapping, stru= ct writeback_control *wbc) * writeback bandwidth is updated once in a while. */ if (time_is_before_jiffies(READ_ONCE(wb->bw_time_stamp) + - BANDWIDTH_INTERVAL)) + UPDATE_INTERVAL)) wb_update_bandwidth(wb); return ret; } @@ -3057,14 +3057,14 @@ static void wb_inode_writeback_end(struct bdi_write= back *wb) atomic_dec(&wb->writeback_inodes); /* * Make sure estimate of writeback throughput gets updated after - * writeback completed. We delay the update by BANDWIDTH_INTERVAL + * writeback completed. We delay the update by UPDATE_INTERVAL * (which is the interval other bandwidth updates use for batching) so * that if multiple inodes end writeback at a similar time, they get * batched into one bandwidth update. */ spin_lock_irqsave(&wb->work_lock, flags); if (test_bit(WB_registered, &wb->state)) - queue_delayed_work(bdi_wq, &wb->bw_dwork, BANDWIDTH_INTERVAL); + queue_delayed_work(bdi_wq, &wb->bw_dwork, UPDATE_INTERVAL); spin_unlock_irqrestore(&wb->work_lock, flags); } =20 --=20 2.25.1 From nobody Thu Nov 28 08:53:52 2024 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93E651D0484 for ; Wed, 2 Oct 2024 12:24:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727871861; cv=none; b=cUL08nBLkxrpIPIaw00ThaTRL6McFdHiMaDhjSnOScaql2dwQgH80LYpFmqCqyBzCIevCYsTIezvSwzLizbxvsfyLEiyUA4KLdtEoHyed+lGvq3Jxx6vJ2pHaR2ij5VV8JV7X696NQvfUjX4Q821mbHEo0AC1nEgLEk73N+MFGQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727871861; c=relaxed/simple; bh=6bXeKCsanUMt8vsnfk0ee0Gw9oQ7jHQbn09VlI9NjcA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BXk3hfwNtOQLemUk0G9jEYFIE5ABCGbopHSd129HuElAqPrI8xztp3eIqPmi65kHNvpdHq2R3IUNF/mXg0CjBCwTU8orptuGLaJBC+iOChR2xGBmqU7+WY7ImGs2WhY2Yto2rt5BHiwblJbEqP0tqh4R4cTRpxXXvNMs0/WIz7k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=U3Vf3lDG; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="U3Vf3lDG" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-20b90ab6c19so31840715ad.0 for ; Wed, 02 Oct 2024 05:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1727871860; x=1728476660; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VTNeeOGHdCxE/aLNehqkFVEv3q3dYYmghT3WJcV4lE4=; b=U3Vf3lDGQz+p9EKSZnBGinh7G6jIbt1j/n7Kwskrr4q5HkYnvoPpO32/tjeElRBmcq CRORoyZsxcSgUfwKJOFW0ObOrpdwcxAwNU7ZT05IsUXkOanmV0les70Xa+JMbZBPoQjz r9Qe/9mcpRk3V98g2Km8M0Qh+lb3eI63Di5vwrr3h/M5U937SbGJde01yAKxRS2zF0ud J22JGbZLj2e68pynHwAjdc3/M/HzOdh5wTmOEZ7CSHPUrg0dbP+kNB4qI9/DM6mHAjIW KM5jPYSPGmtzvofuciXY+FZdVeVW+qDRD2OiOjtsQ+38JbJDQ6xugPSHIx1wXPR8OgzQ /Ofw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727871860; x=1728476660; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VTNeeOGHdCxE/aLNehqkFVEv3q3dYYmghT3WJcV4lE4=; b=SUgNzilf6XtX0GYVyyI8pglU9f8jL5vS+WdEC+iduCZ1ylPWQ+KOgzPX9tkrJxP/0L AhdyswHlIHfEnbcev9kNsKbdCiJpEmxQukoqYV7GOTQ5qao7nSIMkLpUVGhaA/SDHuh/ RTuj4iSpvV5V2nNAJfqqs0YB33bP/b0u49F1VhA3Pw7I2mxCISM2/bQ4hO7EmQPcT01K d5jtFhhTMMGbq7FrH7RD7AC43Bo0NMr7e5wwRB39AkcwU8CYIUSCAOZ0pSrDyzcmIx9U 6BfyMP8gTa985f5cgbb9uKZO7nKLDpO2kcDDtHt4JXzwnVVTyezWZo+LpfsV3gwAafYD q99Q== X-Gm-Message-State: AOJu0YwH96+YmZPtdWGqNtLsEUnQoRRMoYvvS5BsjmiXXrDG6Df0AqJq IvwufKQB/lu9VDX1t9HY1XpjrTE9lF2LcDRmwT5BOmKhNO7fq3Af5G11tJ8QmGA= X-Google-Smtp-Source: AGHT+IHLY2EddxMnC8GOIHgO+9SXMorwEyuilBATFateviNAAQsWjVucg7195EwHnHLCsqszq+SKXQ== X-Received: by 2002:a17:902:da92:b0:20b:b7b2:b6c5 with SMTP id d9443c01a7336-20bc5ae973amr45657185ad.54.1727871859880; Wed, 02 Oct 2024 05:24:19 -0700 (PDT) Received: from localhost.localdomain ([143.92.64.18]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20b37e33852sm83508625ad.199.2024.10.02.05.24.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 05:24:19 -0700 (PDT) From: Tang Yizhou X-Google-Original-From: Tang Yizhou To: willy@infradead.org, akpm@linux-foundation.org, chandan.babu@oracle.com Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, Tang Yizhou Subject: [PATCH 2/3] mm/page-writeback.c: Fix comment of wb_domain_writeout_add() Date: Wed, 2 Oct 2024 21:00:03 +0800 Message-Id: <20241002130004.69010-3-yizhou.tang@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241002130004.69010-1-yizhou.tang@shopee.com> References: <20241002130004.69010-1-yizhou.tang@shopee.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Tang Yizhou __bdi_writeout_inc() has undergone multiple renamings, but the comment within the function body have not been updated accordingly. Update it to reflect the latest wb_domain_writeout_add(). Signed-off-by: Tang Yizhou Reviewed-by: Jan Kara --- mm/page-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index a848e7f0719d..4f6efaa060bd 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -586,7 +586,7 @@ static void wb_domain_writeout_add(struct wb_domain *do= m, /* First event after period switching was turned off? */ if (unlikely(!dom->period_time)) { /* - * We can race with other __bdi_writeout_inc calls here but + * We can race with other wb_domain_writeout_add calls here but * it does not cause any harm since the resulting time when * timer will fire and what is in writeout_period_time will be * roughly the same. --=20 2.25.1 From nobody Thu Nov 28 08:53:52 2024 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14F351CF7CD for ; Wed, 2 Oct 2024 12:24:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727871864; cv=none; b=qbFlfHhSVvLZucVVCQrC79wdX7hla945iFzYkfS/Krip4Vsow3YWu2/C8r/vljT9ZJTFfLpdwvSOTtFq33HjVk4pKzK5ksuqK3FbxhX3rn51jSO7zAFsUibS9ni4gCXRb9TYgqM4UG4rq0v6b4p+pf/D78rZG2aZKHMUBW7U4js= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727871864; c=relaxed/simple; bh=NeAb70ID8j42G87nUgP8vvtPg9itQ0xe55AFpbyVkkA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tnxRUMETksWSfJ0EAMi6igapTtMG0spNhPrPzqR4EH1mVa8ZD/wSKYg0te1Nq8oMLX+1ZZCaXnXWGfqAE3bSJI/pWYZZj0jx6bYKntrdK65vtgusqlRxkebbHCFnGsGhJVAlswVm3IHF3O1RHcJynYVrWYrgPgRJA+fs8TYIx5M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=TaO/hpKj; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="TaO/hpKj" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-20b93887decso27577425ad.3 for ; Wed, 02 Oct 2024 05:24:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1727871862; x=1728476662; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=x9jxj/j9nw6e8DwJ91on41pytWzp7KvscJb32q/qPAQ=; b=TaO/hpKjtqjz2/05Gh/g3dKJT/ukpVoOu5IgJ35lvMzEaK4vbdsA3vvW84pth2rWii +fURrrJbb2kMD9uUhJnCQ3YGC8UfLhedx73w69uy5AEyRnx5pDCzYAyyPo+Uwsb7zH4T VwE0JEufv34Nc753TgeeH5CjkCACD2xrIN4bdg6i4g5BIUN+04wWNZQ06403eLdwDiUY bmjeFxd/XJVkfGS2PDcDHAXMxupnsPU/S15NC3MDWBwJnkYQ0Vbso4YpkLw1twAk98KM hYdU5gN1OD+5axTGbmMSL0WhZrc/JhoPOpDRwXzgUWKlwzv5fh6mhu/BAQh9dcPRpHKV u88w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727871862; x=1728476662; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x9jxj/j9nw6e8DwJ91on41pytWzp7KvscJb32q/qPAQ=; b=iRoPbgJclqWs5sCcVyhK5s/MC5bBvJkfbpQJ3hl2PTM75VVHapkFeFR5LjbvL37PN8 DDTgl3nnd/Mehmly9Sc5ZuTcxOaBRAm1HOtQoPm2puQ27oA7V66iq2mLB8qPtB/TwWYy VHR8PX9WepXQQT4dtrU8F1lcEedLtttWMZ+w8WCmvhY/2MQb/XedyUUEdWAAs6StHJl8 ltq0PqPrazvjkGOvXnsukb3A8uL+Qk9CjGt6ZFEU6f1i/GVj5Qcfueb9DZ9AXeRLrWeQ 1AKBrg2y+80UE5N3Hi6BY53pILvBBPWMt6m2kZq20uxfacZx/Jb6n9DabthjabdKOAzi K9dg== X-Gm-Message-State: AOJu0Yz2wCULbJphveAQ5hubcgDUBtbiDm18PTBs+WvJicqaa1WBOvqT fFZULhkRY3tsTZr4qoNKOinNEJb6rU+bEbNkQWvGDMZsy3hOgW+wuyobTy8z1cI= X-Google-Smtp-Source: AGHT+IFXFlvM15oq56YUiyDf4u3yzUYz4CacAXGpKSzhgTP9fni+duAM0RvW9k0i+kMeuFGumcgwKA== X-Received: by 2002:a17:902:f548:b0:20b:7210:5859 with SMTP id d9443c01a7336-20bc5a5d3bbmr44457335ad.38.1727871862407; Wed, 02 Oct 2024 05:24:22 -0700 (PDT) Received: from localhost.localdomain ([143.92.64.18]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20b37e33852sm83508625ad.199.2024.10.02.05.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 05:24:21 -0700 (PDT) From: Tang Yizhou X-Google-Original-From: Tang Yizhou To: willy@infradead.org, akpm@linux-foundation.org, chandan.babu@oracle.com Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, Tang Yizhou Subject: [PATCH 3/3] xfs: Fix comment of xfs_buffered_write_iomap_begin() Date: Wed, 2 Oct 2024 21:00:04 +0800 Message-Id: <20241002130004.69010-4-yizhou.tang@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241002130004.69010-1-yizhou.tang@shopee.com> References: <20241002130004.69010-1-yizhou.tang@shopee.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Tang Yizhou Since macro MAX_WRITEBACK_PAGES has been removed from the writeback path, change MAX_WRITEBACK_PAGES to the actual value of 1024. Signed-off-by: Tang Yizhou --- fs/xfs/xfs_iomap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index 1e11f48814c0..bb4018395b6e 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c @@ -1097,7 +1097,7 @@ xfs_buffered_write_iomap_begin( end_fsb =3D imap.br_startoff + imap.br_blockcount; } else { /* - * We cap the maximum length we map here to MAX_WRITEBACK_PAGES + * We cap the maximum length we map here to 1024 * pages to keep the chunks of work done where somewhat * symmetric with the work writeback does. This is a completely * arbitrary number pulled out of thin air. --=20 2.25.1