Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp495354pxk; Thu, 17 Sep 2020 08:25:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHbbChAQlOt8CzFt+5h07J+ymvCqPM4Xf/OS7+LJPCAF+SnVabs+A0rgFy+z6UGx67HEpy X-Received: by 2002:a50:8306:: with SMTP id 6mr32283228edh.340.1600356350086; Thu, 17 Sep 2020 08:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600356350; cv=none; d=google.com; s=arc-20160816; b=JbcqYKQis/b7/nwtWRx1Co5+ey/82SzdKKKBiJs4Q0JX4jIXQyzBXfEv1xG5fhCSVC 0Rs7jAitwZ3gKLZBy6BDmrGeVeaPoAWwt1w3VDqnkC/53sfEp0OfvHM1wQtRFGd/Xts6 ffAN7OSvziohWhpDA4OAOCqUf2c0WN4DPWBJOp/a1bXQ/7SpPY0HvwmCZHnGBHFObAId Wp3H/rXO+0HiGfJ1KigEPedhhV3UNeuec8RCnh/ZSfffpKInljpkRBJs//SQuwBVW+mx JNPfZgTSt9fsZuGyJNlULZQsgMNS8hjEF2od+kUTaQ/mzCsyZU/PHollKR5OhYY0N0Gq KpnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VYle+Dy78vGTLJwXqjetxI7H6ckJt5lDFPp8DD2uNGg=; b=tfbNxpudO+gUE4hrcMlCRQ8w8ZHukOCMop3gvdMRSMw9EdDgWLj8PjLBPvZlrRSpyz TGhXaC9DFWh1dWJdmNoTgUnaYmvNLTHb/+h19mqWiut/W5WP7eKztxwzCDnekXKB4bkQ +TThb7+zR0XWbj/aTmHy+WwqlIi1jVwo2qXq15IqEThCumcXUeN2PXhsa+nLTqp68eN/ 0lXQu0V9ojpPBFBYb9EX1GDrbnSaKTDBgrMO1Y2tCfPV+3P15S+HbeoK1r43ehFYyb11 dSbzIVw4FS3gCwz3kTEicbjwoMjMKUoQEL0uLf5CWy5kbT6hPs7y38HXElrdO2T97P8+ mm1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=V0mCKcOW; 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 q13si15115459edc.610.2020.09.17.08.25.26; Thu, 17 Sep 2020 08:25:50 -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=V0mCKcOW; 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 S1728147AbgIQPVt (ORCPT + 99 others); Thu, 17 Sep 2020 11:21:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727958AbgIQPLm (ORCPT ); Thu, 17 Sep 2020 11:11:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBDD2C061356; Thu, 17 Sep 2020 08:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=VYle+Dy78vGTLJwXqjetxI7H6ckJt5lDFPp8DD2uNGg=; b=V0mCKcOWAD8LZwIpL8pYZJAODz ks+ksIQuf2jXnakiEJa2r+1ydB3o4OV0U8IbKATo2l/9ikpsHf1fkR+V3rxyB66/wQOUhBaLbMdLj 6ndjrHb5ife/voKvoE6tbqaARAJh8rBEPWbqNhl4pM+DcKaPCG+C1d+1eawTVjva18TxCLbTbPxvN VlX+BF7sHG36BMaf3mqJvTuHegLCTJaT1VK/d0j1mqUuF6P2GH1tGCTjYNgYtaAh9FTNOwnYoIozA P+PcpgZmeJGFJRA/lFJknTpeXa2yh/EVHrCtzQ9dV1oP9s1Oc75pRO5fPsB43W7ntB/iyA0nyqwco DGNIOLZA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIvYl-0001Qk-4V; Thu, 17 Sep 2020 15:10:55 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, ecryptfs@vger.kernel.org, linux-um@lists.infradead.org, linux-mtd@lists.infradead.org, Richard Weinberger Subject: [PATCH 12/13] udf: Tell the VFS that readpage was synchronous Date: Thu, 17 Sep 2020 16:10:49 +0100 Message-Id: <20200917151050.5363-13-willy@infradead.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200917151050.5363-1-willy@infradead.org> References: <20200917151050.5363-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The udf inline data readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/udf/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/udf/file.c b/fs/udf/file.c index 628941a6b79a..52bbe92d7c43 100644 --- a/fs/udf/file.c +++ b/fs/udf/file.c @@ -61,9 +61,8 @@ static int udf_adinicb_readpage(struct file *file, struct page *page) { BUG_ON(!PageLocked(page)); __udf_adinicb_readpage(page); - unlock_page(page); - return 0; + return AOP_UPDATED_PAGE; } static int udf_adinicb_writepage(struct page *page, -- 2.28.0