Message ID | 20211208042256.1923824-5-willy@infradead.org (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 3D811C433EF for <linux-mm@archiver.kernel.org>; Wed, 8 Dec 2021 06:28:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 57D166B0092; Wed, 8 Dec 2021 01:19:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 52CEB6B0093; Wed, 8 Dec 2021 01:19:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3F42C6B0095; Wed, 8 Dec 2021 01:19:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay036.a.hostedemail.com [64.99.140.36]) by kanga.kvack.org (Postfix) with ESMTP id 301E06B0092 for <linux-mm@kvack.org>; Wed, 8 Dec 2021 01:19:53 -0500 (EST) Received: by unirelay09.hostedemail.com (Postfix, from userid 108) id 203B62076A; Wed, 8 Dec 2021 06:17:48 +0000 (UTC) Received: by unirelay09.hostedemail.com (Postfix, from userid 108) id 82CA721083; Wed, 8 Dec 2021 05:33:55 +0000 (UTC) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4A25B2139B for <linux-mm@kvack.org>; Wed, 8 Dec 2021 04:23:14 +0000 (UTC) X-FDA: 78893332308.02.DEABB4B Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf03.hostedemail.com (Postfix) with ESMTP id 05B4E20002 for <linux-mm@kvack.org>; Wed, 8 Dec 2021 04:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=gVZ3rj3pgutoF/5OlXrYdrDfuJpr8xgCvEFXIoJz1Jc=; b=KP3Iav7r26bF8QCQ/kUMUsXXI6 woSAaYBE1KSsaNOSmtMKTCEhQo4V/eRqoImEZHjipA7BcI3ovCiggyoV5Ix8hHvZDDijEa1srBoPu j+smk4ADhhGCUqFY1Y6BDwoRQVbiqkHCX9P61oPxx5ky/cXfHyP67fEAoibxE1pUQ9HNG/SJFo8+Y jyVVMlv3IGMbCXmv9eE2CB3zI6gcTTkdbd/QiYED02LEVxlI5seeRbx5BWEgtuVEBxoctZzMidyaV hHjREjrP1zvIg+zFSOSuhN4gufcrEn+L9H9tWWbDfrlbqbBO+lMeobm2nzDRdIZG9gIsHb4C8tSZD 7bBYYDxw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoU1-0084Wn-QP; Wed, 08 Dec 2021 04:23:09 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org> Subject: [PATCH 04/48] mm/writeback: Improve __folio_mark_dirty() comment Date: Wed, 8 Dec 2021 04:22:12 +0000 Message-Id: <20211208042256.1923824-5-willy@infradead.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211208042256.1923824-1-willy@infradead.org> References: <20211208042256.1923824-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 05B4E20002 X-Stat-Signature: ajfee1h7edinto3mbppuk9rgdhz88d64 Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=KP3Iav7r; spf=none (imf03.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-HE-Tag: 1638937392-989626 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> |
Series |
Folios for 5.17
|
expand
|
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index a613f8ef6a02..91d163f8d36b 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -2496,7 +2496,11 @@ void folio_account_cleaned(struct folio *folio, struct address_space *mapping, * If warn is true, then emit a warning if the folio is not uptodate and has * not been truncated. * - * The caller must hold lock_page_memcg(). + * The caller must hold lock_page_memcg(). Most callers have the folio + * locked. A few have the folio blocked from truncation through other + * means (eg zap_page_range() has it mapped and is holding the page table + * lock). This can also be called from mark_buffer_dirty(), which I + * cannot prove is always protected against truncate. */ void __folio_mark_dirty(struct folio *folio, struct address_space *mapping, int warn)
Add some notes about how this function needs to be called. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- mm/page-writeback.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)