Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4541392pxv; Tue, 20 Jul 2021 06:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTKZH6FWL4dRAEBKb+bZwqdSAOfjiMvS7j3wT2napBOxoziydbydHg3mllIGAgOade9r3G X-Received: by 2002:a17:906:5e09:: with SMTP id n9mr32619773eju.15.1626786987120; Tue, 20 Jul 2021 06:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626786987; cv=none; d=google.com; s=arc-20160816; b=i8Qu9F/Sy7pK4XGpviRaaJOYWPSzaukncn4PpwhhPm8CB03R/SDcWvABYU7yjdgU2k GkCKfXAhiN/E8DzRmFM1VAJblkZTD+u/oN2jZTzloJGtbr69FSnRfqPWP1VIsPGwk3r2 I18EHsiLi1Rru4iSf7OuEyzmBdW2UofV6V3eALL/lJ6nXx7Egg981AX3vnQCltC2nQil g5l/IJJvsSdjIeLv0Bu5p3qy47SamvlASI5s4eZeUR/DmymksaNujqgSFZ9v/p7tvlAI lg2x6L6pP6bfq5z0s6bK8+zcXYCDDzNpHsqlL18mYrWUmjK2DJbG7ds4YgxouTVPeRWr SieQ== 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=hgPl5F02pttqsu+FUSnFeMJhzopEmUNSjuPlvxGlBNQ=; b=z7+HNO0c3/vaV7eeHnPK+a6gxHEjl9y4YgLTB5VEYDdT6/UtrLsz8KsE4O4wIiSrAY BRgs++lvVEbQnp3L9NjmA9jbsCjfm2TK/jBaE842PY8LMmPFDQybSXdEF9ClbS4ihzqz 1WYjIPV15f7MJ2lCVltjDCpA0wo/ll2Sf0rzIyztWIkMCjUdDEBTaQFTMa8FXjOADOCJ VkmUTjpK2HxNDFmJjqU9sFnBxKPo+6xSY9GelFUzJmILccoVIwlsA0PsGPDvuNEotW6D pCnliGLZntmS4GZ91snclhPPt4XkkrFOZRBgbNxWC1/kZ8j9FF0D1xra7OJjkKn2jsHS OfBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=M6xeEccq; 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 w3si21488427edc.112.2021.07.20.06.16.03; Tue, 20 Jul 2021 06:16:27 -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=M6xeEccq; 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 S232903AbhGTMap (ORCPT + 99 others); Tue, 20 Jul 2021 08:30:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbhGTMao (ORCPT ); Tue, 20 Jul 2021 08:30:44 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4097C061574; Tue, 20 Jul 2021 06:11:22 -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=hgPl5F02pttqsu+FUSnFeMJhzopEmUNSjuPlvxGlBNQ=; b=M6xeEccq4GIeEt99toObAGtega 3m5vXEaKuL0UJFc7tAGqTZZd0Og1h2AmXcr/BLCdSYHDFQQ+ceK9SAwtm4mhWFxtDlpMtrNk6kQtq 3narjx3gwvt6smCi08/VGdQn/hyuOVKK/96yfbhpmT1DUyh7sS2XAUpsD/e4loZnORNGjmGG7wjXq G0ruOtWipKwCrP4s3jcp17w0HyaJCWrYiwi+KfgRX0OrCBHASij/vmXQj7Kl2Wv6ylaAkHkgxUuOS EQBQjX0T+gILeL6j/dEER9Py2kZxiI+hT+kjb7WlRee4qMf0r9+dyT1RyHfUo1jzRxOvlLnk5Iuf7 b/ZhMeKA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5pWL-008850-86; Tue, 20 Jul 2021 13:10:55 +0000 Date: Tue, 20 Jul 2021 14:10:49 +0100 From: Matthew Wilcox To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Yu Zhao , Christoph Hellwig , David Howells , "Kirill A . Shutemov" Subject: Re: [PATCH v14 011/138] mm/lru: Add folio LRU functions Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-12-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 20, 2021 at 01:44:10PM +0300, Mike Rapoport wrote: > > /** > > - * page_is_file_lru - should the page be on a file LRU or anon LRU? > > - * @page: the page to test > > + * folio_is_file_lru - should the folio be on a file LRU or anon LRU? > > + * @folio: the folio to test > > * > > - * Returns 1 if @page is a regular filesystem backed page cache page or a lazily > > - * freed anonymous page (e.g. via MADV_FREE). Returns 0 if @page is a normal > > - * anonymous page, a tmpfs page or otherwise ram or swap backed page. Used by > > - * functions that manipulate the LRU lists, to sort a page onto the right LRU > > - * list. > > + * Returns 1 if @folio is a regular filesystem backed page cache folio > > + * or a lazily freed anonymous folio (e.g. via MADV_FREE). Returns 0 if > > + * @folio is a normal anonymous folio, a tmpfs folio or otherwise ram or > > + * swap backed folio. Used by functions that manipulate the LRU lists, > > + * to sort a folio onto the right LRU list. > > * > > * We would like to get this info without a page flag, but the state > > - * needs to survive until the page is last deleted from the LRU, which > > + * needs to survive until the folio is last deleted from the LRU, which > > * could be as far down as __page_cache_release. > > It seems mm_inline.h is not a part of generated API docs, otherwise > kerneldoc would be unhappy about missing Return: description. kernel-doc doesn't warn about that by default. # This check emits a lot of warnings at the moment, because many # functions don't have a 'Return' doc section. So until the number # of warnings goes sufficiently down, the check is only performed in # verbose mode. # TODO: always perform the check. if ($verbose && !$noret) { check_return_section($file, $declaration_name, $return_type); }