From patchwork Wed Jun 24 20:49:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 11624345 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 01CD614E3 for ; Wed, 24 Jun 2020 20:49:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C39DF2081A for ; Wed, 24 Jun 2020 20:49:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C39DF2081A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id DE14A6B000C; Wed, 24 Jun 2020 16:49:55 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D6A896B000D; Wed, 24 Jun 2020 16:49:55 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C58A16B0010; Wed, 24 Jun 2020 16:49:55 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0134.hostedemail.com [216.40.44.134]) by kanga.kvack.org (Postfix) with ESMTP id A97376B000C for ; Wed, 24 Jun 2020 16:49:55 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 1C5EC8245578 for ; Wed, 24 Jun 2020 20:49:55 +0000 (UTC) X-FDA: 76965297150.29.dock34_2e02d8d26e47 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin29.hostedemail.com (Postfix) with ESMTP id E9F9518086E31 for ; Wed, 24 Jun 2020 20:49:54 +0000 (UTC) X-Spam-Summary: 1,0,0,ce0db80fc07b596d,d41d8cd98f00b204,yang.shi@linux.alibaba.com,,RULES_HIT:41:355:379:541:960:973:988:989:1260:1261:1345:1437:1534:1540:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:3138:3139:3140:3141:3142:3352:3865:3867:3870:3871:3872:4398:5007:6119:6261:7903:10004:11026:11473:11658:11914:12296:12297:12555:12895:13069:13255:13311:13357:14096:14181:14384:14394:14721:21060:21080:21324:21627:21983:30054:30070:30090,0,RBL:115.124.30.57:@linux.alibaba.com:.lbl8.mailshell.net-64.201.201.201 62.20.2.100;04yguoyyijk47dgtbiyx591gehkjuypu3poqkewh8cb79qccw3mzfzew3surf5i.4j7xbh79gwnk5cukwkmu66cqp1nnobh4anhmnie57h7dg4gs5wexwcqynifpep7.6-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:30,LUA_SUMMARY:none X-HE-Tag: dock34_2e02d8d26e47 X-Filterd-Recvd-Size: 1948 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by imf20.hostedemail.com (Postfix) with ESMTP for ; Wed, 24 Jun 2020 20:49:53 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R751e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01419;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0U0dB-ik_1593031747; Received: from localhost(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0U0dB-ik_1593031747) by smtp.aliyun-inc.com(127.0.0.1); Thu, 25 Jun 2020 04:49:50 +0800 From: Yang Shi To: akpm@linux-foundation.org Cc: yang.shi@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm: filemap: add missing FGP_ flags in kerneldoc comment for pagecache_get_page Date: Thu, 25 Jun 2020 04:49:07 +0800 Message-Id: <1593031747-4249-1-git-send-email-yang.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-Rspamd-Queue-Id: E9F9518086E31 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 X-Bogosity: Ham, tests=bogofilter, spamicity=0.007895, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: FGP_{WRITE|NOFS|NOWAIT} were missed in pagecache_get_page's kerneldoc comment. Signed-off-by: Yang Shi --- mm/filemap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/filemap.c b/mm/filemap.c index 0589aef..9b47ffe 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1590,6 +1590,9 @@ struct page *find_lock_entry(struct address_space *mapping, pgoff_t offset) * * %FGP_FOR_MMAP - The caller wants to do its own locking dance if the * page is already in cache. If the page was allocated, unlock it before * returning so the caller can do the same dance. + * * %FGP_WRITE - The page will be written + * * %FGP_NOFS - __GFP_FS will get cleared in gfp mask + * * %FGP_NOWAIT - Don't get blocked by page lock * * If %FGP_LOCK or %FGP_CREAT are specified then the function may sleep even * if the %GFP flags specified for %FGP_CREAT are atomic.