From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF6D9C433DF for ; Fri, 16 Oct 2020 16:20:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 01EE7207BC for ; Fri, 16 Oct 2020 16:20:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ttpJPHVl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01EE7207BC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8C87994000C; Fri, 16 Oct 2020 12:20:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 84E71940007; Fri, 16 Oct 2020 12:20:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7406C94000C; Fri, 16 Oct 2020 12:20:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0067.hostedemail.com [216.40.44.67]) by kanga.kvack.org (Postfix) with ESMTP id 3E526940007 for ; Fri, 16 Oct 2020 12:20:21 -0400 (EDT) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 97767180AD807 for ; Fri, 16 Oct 2020 16:20:20 +0000 (UTC) X-FDA: 77378301000.28.color33_560b4e12721e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin28.hostedemail.com (Postfix) with ESMTP id 7AB3D6C13 for ; Fri, 16 Oct 2020 16:20:20 +0000 (UTC) X-HE-Tag: color33_560b4e12721e X-Filterd-Recvd-Size: 2321 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Fri, 16 Oct 2020 16:20:20 +0000 (UTC) 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=SoeUdKTgaEeumdsHlwEayshKcw/8MedETPawI1HuSQI=; b=ttpJPHVlwPcHBv8GebSCBxmnTN FgDC+gvxcb4jjRfWafVrRUlszkL3p2ZH/wDyiMXLAxROoLSOd3qXSDvluAjKtLxa3CKjnHS7JoucY FS2gH4JDqyxK2M7G65tJClc/4bFQOpPeiqdDzmmpASQ9H9t9ey90G2x5KUTHdCBIbT6DFv/1Xniyg qA+GkAe6/672Av6nUceAbFncdGTzkZ3GFOCZpeFH6ssnvByVXDBLy7pmew02Qq27SfRdvip7T/Yqr NARqnczlDAHM6hQYfgeMZRzphYz7MvMCc/a7HJ3fYZChkY9O4dt/L0a5ypr/VJ8f779g1LCJv7Kha emZS026w==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kTSDs-0004uV-HZ; Fri, 16 Oct 2020 16:04:52 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Jan Kara Subject: [PATCH v3 17/18] udf: Tell the VFS that readpage was synchronous Date: Fri, 16 Oct 2020 17:04:42 +0100 Message-Id: <20201016160443.18685-18-willy@infradead.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20201016160443.18685-1-willy@infradead.org> References: <20201016160443.18685-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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) Reviewed-by: Jan Kara --- 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, stru= ct page *page) { BUG_ON(!PageLocked(page)); __udf_adinicb_readpage(page); - unlock_page(page); =20 - return 0; + return AOP_UPDATED_PAGE; } =20 static int udf_adinicb_writepage(struct page *page, --=20 2.28.0