Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4885678rwb; Mon, 8 Aug 2022 08:31:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR5oo+gxcCxhtgYUCzCw7BB53u68r6R3+9ok0wsfJju6h0w24OJL1F2CT9wALydnoKNnjqXr X-Received: by 2002:a17:906:a219:b0:6e4:86a3:44ea with SMTP id r25-20020a170906a21900b006e486a344eamr14554393ejy.385.1659972708261; Mon, 08 Aug 2022 08:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659972708; cv=none; d=google.com; s=arc-20160816; b=AxS2PfzomJYAGo+oEz0dIR8hAyM/9fKQrlgz7ZvUVj0V232bDpl9jonOYekkQTKR6g 7DnZzY1YOvXTGgmHTGQBPWnHWoImyQsZnAl75VIE4KB7eLMsKiyW29Lw4WUE+0xRxiA7 k04GbChl2M0mo2SL8zMh0k26bgrhFbPcw8jHSl80L07RQ99HR22yKcjQEwpo43EiH+55 aDLOhsYxiOPqIiiH7AEw1+0kcN+nYsR+aWav5yXtsXlRA2dTdgUR+bRnIbdM5J58Yecp Y+FiSo3y+k9VFc3hhx7cHND4BpaIZFIbu2n8xQHPlKV+3YSzk6Y66HB/ktiMT41XGbWM U2MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=RPye+rAUIVLpi5PefjQzcwymvo1kBBUmF1DhOsDRDFA=; b=0pzTHY1ZB62HmRC6LtHcHnzXvveSJqVxyZgHFbCozY3iLujWmqJPzcG7DesPmG0OEO o6717XOHaxOqfy+Fh5q9DLmLGX5H7A+1+WpqgQ28l7xi5hXrWq8inSAIDN42cOJ0zDr9 XOaLWqJaooO5RymyrHqwME5c9+X9ZAralbPHzrrAe6Q6P76llNO80E1rGS/bHgyevh/Z 2//YtDnT13S3XE89pcn3I65Com4cA0WGBQH8FJ8F94Vx20imBJ4t5u97wWJECHugIvBK k+cqzVGELsaW2hOP25Hi/+ogDTGISiymOfF6qKByXi5yzr5z3vkohrJRMJ+UUaajtHFi oymw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y+2dHbFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a056402084b00b0043df391fc6asi7512134edz.578.2022.08.08.08.31.21; Mon, 08 Aug 2022 08:31:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y+2dHbFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243043AbiHHOvk (ORCPT + 99 others); Mon, 8 Aug 2022 10:51:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236566AbiHHOvh (ORCPT ); Mon, 8 Aug 2022 10:51:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5EA1627C; Mon, 8 Aug 2022 07:51:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2A117B80EE8; Mon, 8 Aug 2022 14:51:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30B98C433D6; Mon, 8 Aug 2022 14:51:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659970291; bh=zYRnrfeP8ogVaktIwQGSynPL2OROqygzFRr2pMdrg6o=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Y+2dHbFA6NZ6XTuU30AuLcH3/K1GnydqX3Xm837AxSdIKo3JGwx/NmwHT+fugMZAO CinpdBDGYzZW2zkjFCarnqfINvIA6Tl2TABH+cXpr8agO2C8n+quWpxpAh5J2fOrAs pTx6hJpMGUcIgzTG04F8sN+rCN1N9S/rpmoWtM0syuXlEXGzx8mCKN+mqMpLqzh3CU Y1D5g4HDCsZ5k0/uKRKw7bElRkYj1phtbtnwPAH+rPVtxepwwP31So1Y7Eq7OgdV+K FC4Btm1ZsxkmCeDcCyplyqI91kAL0hpF4T28o5zD86aLKTIcbqzdiEeBtgGFmEZgXm iv6jPfuGcXDfA== Message-ID: Subject: Re: [PATCH] cifs: Remove {cifs,nfs}_fscache_release_page() From: Jeff Layton To: David Howells , willy@infradead.org Cc: Steve French , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 08 Aug 2022 10:51:29 -0400 In-Reply-To: <165996923111.209242.10532553567023183407.stgit@warthog.procyon.org.uk> References: <165996923111.209242.10532553567023183407.stgit@warthog.procyon.org.uk> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 (3.44.3-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2022-08-08 at 15:33 +0100, David Howells wrote: > Remove {cifs,nfs}_fscache_release_page() from fs/cifs/fscache.h. This > functionality got built directly into cifs_release_folio() and will > hopefully be replaced with netfs_release_folio() at some point. >=20 > The "nfs_" version is a copy and paste error and should've been altered t= o > read "cifs_". That can also be removed. >=20 > Reported-by: Matthew Wilcox > Signed-off-by: David Howells > cc: Jeff Layton > cc: Steve French > cc: linux-cifs@vger.kernel.org > cc: samba-technical@lists.samba.org > cc: linux-fsdevel@vger.kernel.org > --- >=20 > fs/cifs/fscache.h | 16 ---------------- > 1 file changed, 16 deletions(-) >=20 > diff --git a/fs/cifs/fscache.h b/fs/cifs/fscache.h > index aa3b941a5555..67b601041f0a 100644 > --- a/fs/cifs/fscache.h > +++ b/fs/cifs/fscache.h > @@ -108,17 +108,6 @@ static inline void cifs_readpage_to_fscache(struct i= node *inode, > __cifs_readpage_to_fscache(inode, page); > } > =20 > -static inline int cifs_fscache_release_page(struct page *page, gfp_t gfp= ) > -{ > - if (PageFsCache(page)) { > - if (current_is_kswapd() || !(gfp & __GFP_FS)) > - return false; > - wait_on_page_fscache(page); > - fscache_note_page_release(cifs_inode_cookie(page->mapping->host)); > - } > - return true; > -} > - > #else /* CONFIG_CIFS_FSCACHE */ > static inline > void cifs_fscache_fill_coherency(struct inode *inode, > @@ -154,11 +143,6 @@ cifs_readpage_from_fscache(struct inode *inode, stru= ct page *page) > static inline > void cifs_readpage_to_fscache(struct inode *inode, struct page *page) {} > =20 > -static inline int nfs_fscache_release_page(struct page *page, gfp_t gfp) > -{ > - return true; /* May release page */ > -} > - > #endif /* CONFIG_CIFS_FSCACHE */ > =20 > #endif /* _CIFS_FSCACHE_H */ >=20 >=20 Reviewed-by: Jeff Layton