Message ID | 20231222150827.1329938-2-hch@lst.de (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A57FC41535 for <linux-mm@archiver.kernel.org>; Fri, 22 Dec 2023 15:08:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2654F6B007B; Fri, 22 Dec 2023 10:08:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 129DF6B007D; Fri, 22 Dec 2023 10:08:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EBD596B007E; Fri, 22 Dec 2023 10:08:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id D17096B007B for <linux-mm@kvack.org>; Fri, 22 Dec 2023 10:08:34 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 85443120F4C for <linux-mm@kvack.org>; Fri, 22 Dec 2023 15:08:34 +0000 (UTC) X-FDA: 81594785748.07.6C9FB12 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf23.hostedemail.com (Postfix) with ESMTP id CD9F3140007 for <linux-mm@kvack.org>; Fri, 22 Dec 2023 15:08:31 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=sS1lzdSK; dmarc=none; spf=none (imf23.hostedemail.com: domain of BATV+af923ccb694ecd533eae+7425+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+af923ccb694ecd533eae+7425+infradead.org+hch@bombadil.srs.infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703257711; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=UHLYB53YtGsTugfyc+sHmLVVrbGg0LS55c68Xz8vbHU=; b=8llMHXARzTsdSPOFqV4FgmUQZBmT8FwN5QhXfx9/DVpMimt7/HC5IVGBhJ1ZnIQr1U8wNd dpy3AB0pTrqViwrtxdiT8/K8Dn/jtfZrqE+9d9Ikq0PvXILTtPwvmE8eFSOZrA8WWrw906 WlaZ+1H89LaZ837egbysAI7Yb9Uc0XQ= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=sS1lzdSK; dmarc=none; spf=none (imf23.hostedemail.com: domain of BATV+af923ccb694ecd533eae+7425+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+af923ccb694ecd533eae+7425+infradead.org+hch@bombadil.srs.infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703257711; a=rsa-sha256; cv=none; b=SXNxBVVuaaSu3fIavykb9zwWPlqddbVDpwGnwb6sudH0Kf4/pVJxGzN3TBImD0mrwQAny1 CXoppcoLEhs1zSMpOHxfEFTRCI7XBZS6ox+0kPIypwIfXDT4h7XxOc3NJB/2kY8AJwdXRn Tb4g1aHrGjSuXNeBCiFZ9ZJsy6cdsh8= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=UHLYB53YtGsTugfyc+sHmLVVrbGg0LS55c68Xz8vbHU=; b=sS1lzdSKCtbDDt5pryAreVWTDH SjkKoxC7B15xtfkczw8hl1mfsQbLTllwOTvsAXunotk3Fp2hLQPGqlwbaVRFgsU0ZaAcyw6VQH9k1 kk2oEtaDSk0x88fUWX7NBy3ajJmxXiSLpCr+H/7QvpWjlhwAweh5KmPWDZEljN1iFlOqxQ2VknBah Wlr233mRp7xfWL07mAdOfNycfh9hy4Vmab1nwypZqdomhnN5QFuas6w8rM6D0zdOlQYfkuS1eN4g4 xf7tOIbwqPtd8oS5XwjiPBQoJYrMUK5MnXGVXxw9sfXfr8TzwUqZ5dVcUotykFxtw2mfLOg0vKZON E8ZhJhkw==; Received: from 2a02-8389-2341-5b80-39d3-4735-9a3c-88d8.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:39d3:4735:9a3c:88d8] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rGh8X-006BLb-2P; Fri, 22 Dec 2023 15:08:30 +0000 From: Christoph Hellwig <hch@lst.de> To: linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, Jan Kara <jack@suse.com>, David Howells <dhowells@redhat.com>, Brian Foster <bfoster@redhat.com>, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Kara <jack@suse.cz>, Dave Chinner <dchinner@redhat.com> Subject: [PATCH 01/17] writeback: fix done_index when hitting the wbc->nr_to_write Date: Fri, 22 Dec 2023 16:08:11 +0100 Message-Id: <20231222150827.1329938-2-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231222150827.1329938-1-hch@lst.de> References: <20231222150827.1329938-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from <hch@infradead.org> by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: CD9F3140007 X-Stat-Signature: j83zq9di3qd7x5mxc8dz1ssux17rb6ue X-Rspam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SC0l9LBTtqqQ6yEcTlK+8LOv8Emx+tDTT5BTv/bmHFXilIpx47j2idNrysfcbv1dxa+MZCd1nOLuyKQIdzPdpClrVxSME2o+eh+rEZH9n9S1EcLiq58ZhKthvaGyVALAFQlGEk3Zu0uWgFJ0Z3J5JY5sZIjkFtLXz+DdZnglo6t3tjXcEVqPD9S9DWN6dIx72yVABkcd32jrh/PabEYI2H3Z2S3ObcKvvRKfjTeCzVGHh1lp08czt453mLM8FIPWyZYTL8KxC798/S1V4M3SW7Ii17Ta1gmdfe75IjZYE1Hy/Rt6XyruNl9JyEwaISsauCe+CBpqZNoNI7vWMlfWL3BpuoGQuGRTR7p9HmtOhaHCPzg8o5EBNNSJg9Yl8iOOjquc4Qs8H6OY7DrYej4DaGGwECyXYEp2O0QesTKT2v9ARgfPSqwzQo= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[01/17] writeback: fix done_index when hitting the wbc->nr_to_write
|
expand
|
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index ee2fd6a6af4072..b13ea243edb6b2 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -2505,6 +2505,7 @@ int write_cache_pages(struct address_space *mapping, * keep going until we have written all the pages * we tagged for writeback prior to entering this loop. */ + done_index = folio->index + nr; wbc->nr_to_write -= nr; if (wbc->nr_to_write <= 0 && wbc->sync_mode == WB_SYNC_NONE) {