From patchwork Wed Oct 2 13:00:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tang Yizhou X-Patchwork-Id: 13819734 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 0144A1D0786 for ; Wed, 2 Oct 2024 12:24:22 +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=1727871864; cv=none; b=frKrg5YwIAzw+fEWQOFpPT8Ddu/U/GKtNTLxTbH4baYOcB5bDFsNOVJlixSx/FAiZEpRKlI94PSCMRm0MU1PUkt9QWIACRX1ETgkvzWZVpFFowKvZHyTNbBGKHMIZquVB5HAVqmryfQoTyoxPExLfBdIiiF7t7nym+8ZYagEbdc= 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.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="TaO/hpKj" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-20bcae5e482so5075475ad.0 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=cu317Xi13O/XCl8BC1Y2Fo/8pzEUMUhTjCG3Dh6i3sJ3a2lzTQsMrn08BBaAasKVMx q/vT1BwcADXIX0dj7SRzaQUguWfxiPefl+biiIoO8jKlhCzcRJkcTK5p5o+DovKdg6HU xWcXNWd4dw/JtOYDRtTWbEiW5KVw2cEz55HRSQ9jdEZXfC98HXhE9ztPKmi3rU59Daby N/e8PgCFBnSR3ARlLt0BUYAJ317jPmRpqyI5H3d0RliHGal7ilhw8/Y6WBLS1E+yrbj7 I+wi7BZKGWCokM9s1C9Iim2x1sBH+wuxAtmwcTWybBWpv6FJJ8GPp8/4JLdSA+G7MBui +2sA== X-Forwarded-Encrypted: i=1; AJvYcCXS7Ka5Oh1muXwuduz/VeYGjX3K2vGKP6UMdk0alvoSKnOJFUqB34uMWzCSdbeWKqCyY4pTXBVUjvM=@vger.kernel.org X-Gm-Message-State: AOJu0YwTWI+MEshsH7zJ7iNwcClaXJpAEsWIRwmc+CadSIO6DHBBNigU WOk88TRiIR52cu4E5+r8yqQsjbkoAWYkGz4HN1GATYt4fZIKHaI5YQKmVy7Tuok= 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-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 = 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.