Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1064125pxy; Sun, 15 Aug 2021 08:39:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhu2uQYk0Y+tx4blOX7dXBxOh2aDaDp2/TIFeCSMlWSSiztAV2i6xY8XWZXOs0BTb+UgCU X-Received: by 2002:a05:6402:1912:: with SMTP id e18mr14922202edz.135.1629041993070; Sun, 15 Aug 2021 08:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629041993; cv=none; d=google.com; s=arc-20160816; b=cllpdU5FTZGhuHosJB84/+W35eOvIOOI5PNyd0XDD70NLmuEcukQOCTzBV5DanqoBt XpMCVZ6H2swMqS2lqikMjDkbkZkJZXVGS3RQEC7X4RuM8k7ZxcAIpvB1l/gARtr8SYcU GdtVJyCaplmdRXu+6Lmr4S60NjTxs2EujFUQMOwuc3cyOpBv7QpQX8fJZsBdlQTru0rg kBDccWiKk59wO7QFtTkyOpKb4iyI7cL61aURr3Et7UPVwC42XVrCTkUMdvFE/kRzHUvs 3ttaS3VBVCg7lVP+Wy3T1SMF6/x2mEAFMz+QrsmcENO7IW4mEWJluNeM6pW+E7k4WKvS GE1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eYSk1CsSbdU6TZDzwzr/5Rga7dzOhjq06uCI72Yt8v8=; b=TWhZH074GVNUSc0umKnOZ7wGQGI0Ybj8HKsyNVEjW5NnBwjnesMgDDJECgJkI6j/Xs ifMdcpfeaTCsBx7X8sZniBD0Y18YqDawRXsEt5FphU7KZ6Dllpv4wbu4X+BB89Cw7rFl YyVNZ2RHWIb/0MhZRVa0GcO8QDuS68WaBlQqagiSZ/on8Go1ANt5heqHguX1YGutjAu2 yzDIzbmV6k9laDErYE1QMQKCR6nmhNunO5gcyf99gtIR3tNosZu94Aevsrz93OmpFBXd iyLFg8uWkKMkCg8A6tWwZOK4TWR1VroToar3/rzXH63WhHC36wjEQzZC+3mxBmBU62AC gp3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=B6xaQgGx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si7977739ejz.402.2021.08.15.08.39.28; Sun, 15 Aug 2021 08:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=B6xaQgGx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237917AbhHOPgb (ORCPT + 99 others); Sun, 15 Aug 2021 11:36:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbhHOPga (ORCPT ); Sun, 15 Aug 2021 11:36:30 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2132CC061764; Sun, 15 Aug 2021 08:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=eYSk1CsSbdU6TZDzwzr/5Rga7dzOhjq06uCI72Yt8v8=; b=B6xaQgGxdCdoXNp3KRyPOxnERh C/7Lg4rqNcC1kw99i4ixF4K5FBcTzxKmL64L9VVAbhDlrclSCeml39NQUuzmTYLqOBycvaEhvuj3f Lpe3EZD/E27F623ENZ9pQe5q3qaRDcgPVN+g/QE61zunyNWJjEz4r5BHLfkHZObtsSm45Frf65NJs TQcdUo8QCldl6iyH4L9+OCavA7eAR8jmH1pofQlxHYMxI1Fv0Dp8tsKoGm2fQw1QDFSAEvIgRu41H 703a0TmBGOqbvT6oz3RKQ50/X81kDalORq05dqUwZheQsNKZEP9gXnbMCWmcHIRUXrxOhII9Z7x3f W33x5Arg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFIAr-000OO9-Kb; Sun, 15 Aug 2021 15:35:49 +0000 Date: Sun, 15 Aug 2021 16:35:45 +0100 From: Matthew Wilcox To: Vlastimil Babka Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v14 076/138] mm/writeback: Add folio_redirty_for_writepage() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-77-willy@infradead.org> <249863ea-8b4b-df38-545a-5f083502270d@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <249863ea-8b4b-df38-545a-5f083502270d@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 12, 2021 at 06:30:51PM +0200, Vlastimil Babka wrote: > > +/** > > + * folio_redirty_for_writepage - Decline to write a dirty folio. > > + * @wbc: The writeback control. > > + * @folio: The folio. > > + * > > + * When a writepage implementation decides that it doesn't want to write > > + * @folio for some reason, it should call this function, unlock @folio and > > + * return 0. > > s/0/false ... no? This sentence describes what a writepage implementation should do, and writepage returns an int, not bool.