Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2362462ybz; Sun, 26 Apr 2020 17:14:25 -0700 (PDT) X-Google-Smtp-Source: APiQypKG3vukjUtlFOnSdW1tgj2ag8SbBrkhevDHWchwggs953qgUQVPnto9KecYv7XezDKjNmJA X-Received: by 2002:a17:906:af6f:: with SMTP id os15mr17673557ejb.78.1587946465613; Sun, 26 Apr 2020 17:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587946465; cv=none; d=google.com; s=arc-20160816; b=yZMgZnv3MSu+DCEJDYqTD3EnavNbCRyd9gY2xNvA16j5+VoE6rO3HwqD4bZSomtrxC UVszHPDqLpPjLJkm4TLdYcSFmLH4o4fJo4E882NXEca8muJoeqjI+dViDV2HwS1aZPi7 hZGrw4RTC9+5FB6uNya8nXnXk6xesk6Vix5WezxtKfHHHftr/XV8Mxbo6f4QccwjvpH2 Fq4gIzQ2QoMhfj4RNHm4FmRHBY0ghjH86a5TQ23V79HcUIEp9OJah5YizMoMjsye86sP r2aYXgfkYheg53BewQi9Q/DtVLJdbyohkSu21WNXBCgD4/955pRO0QNv5uE7Bt5UDvj5 mf8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Sv3KzlHXHSNzqCfln1zX1+cYvetQ25Ui6UHInWko+bo=; b=disrGMP0kPZ3gG9PS3jEywk2PFOMbiDYNGpo1spWaD21KVLqzfrJH31DU5Jvn2QbaM IIepYjukomMw1vlGhqxtk/ZDO5hO5mauSKif6OprK1XKi7X5no3KhHSRfG+hIawLvJxG 3OS967Jsx37d9pWJWuRIHdqiY1Vc/8r8lw4LDOBen+PshpbCvTTqTQ+bIIVQdnVBBHGw lZPO/8Mcx+jdZutTdkdxnF9paIdYSaVDCSuOWM0CyuPdiesdischaN5hcDwbQBKwppm+ /sJ/U6s600JocbgaK76P8scjFxPGSqsX5Ggr3LvD/nAtpag9Lp3+5Pp/ibgXGYoqu+tE fY6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="rEb+lE/0"; 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 v26si475043eje.322.2020.04.26.17.14.01; Sun, 26 Apr 2020 17:14:25 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="rEb+lE/0"; 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 S1726327AbgD0AMl (ORCPT + 99 others); Sun, 26 Apr 2020 20:12:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726216AbgD0AMk (ORCPT ); Sun, 26 Apr 2020 20:12:40 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EF94C061A0F; Sun, 26 Apr 2020 17:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=Sv3KzlHXHSNzqCfln1zX1+cYvetQ25Ui6UHInWko+bo=; b=rEb+lE/0+PtIQJdRbjS2xjuy+o oSuqS+/IwVu0sy4fCBtWk7SuEB22rklJevn4zj9wnt4SG9IaNVUSlQbdp8tLG4xGcFlChDqU9Hdp8 LSZD0cVat+rHWqK4vYCIQfqKBNzpNloawwp5432WYgqdqYklL3xej2tZpQa1Z2c2Sp0vudw1U0aV2 8YhjOjoLPsdQ1qmpE/Rtx5bn40vIsybG4bpGkMU6yNDtnIlstQZWDQrLFZ6QkdRS6odl8LuHfUAhS BxvVdaRF++aRN9IF/VQTPEUdZwxcmS2G+OtGu4bM+Q7fR0GRS+nF/Ppq/nR8Hzzsn9U0a5/b8liA8 TBKguqDA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jSrNy-0003Ft-9I; Mon, 27 Apr 2020 00:12:34 +0000 Date: Sun, 26 Apr 2020 17:12:34 -0700 From: Matthew Wilcox To: Dave Chinner Cc: Guoqing Jiang , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org, Mike Marshall , Martin Brandenburg , devel@lists.orangefs.org Subject: Re: [RFC PATCH 8/9] orangefs: use set/clear_fs_page_private Message-ID: <20200427001234.GB29705@bombadil.infradead.org> References: <20200426214925.10970-1-guoqing.jiang@cloud.ionos.com> <20200426214925.10970-9-guoqing.jiang@cloud.ionos.com> <20200426222455.GB2005@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200426222455.GB2005@dread.disaster.area> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 27, 2020 at 08:24:55AM +1000, Dave Chinner wrote: > > @@ -460,17 +456,13 @@ static void orangefs_invalidatepage(struct page *page, > > > > if (offset == 0 && length == PAGE_SIZE) { > > kfree((struct orangefs_write_range *)page_private(page)); > > - set_page_private(page, 0); > > - ClearPagePrivate(page); > > - put_page(page); > > + clear_fs_page_private(page); > > Ditto: > wr = clear_fs_page_private(page); > kfree(wr); You don't want to be as succinct as the btrfs change you suggested? kfree(clear_fs_page_private(page));