From patchwork Mon Apr 3 13:22:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Raghav X-Patchwork-Id: 78552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2312472vqo; Mon, 3 Apr 2023 06:43:26 -0700 (PDT) X-Google-Smtp-Source: AKy350YKDeWedZNcTNzsu9rQEgk1jqxgkmCEtDJR0hfc1Ilf0HMYKje1TB4NKduMgZHmEkJn8K63 X-Received: by 2002:a05:6402:1394:b0:502:9a70:3a39 with SMTP id b20-20020a056402139400b005029a703a39mr4136056edv.1.1680529406094; Mon, 03 Apr 2023 06:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680529406; cv=none; d=google.com; s=arc-20160816; b=HgKe57fnPd4JTvCYHwhyINiPH1axh9Trfkbt40owv8s32iDF86yNLUtfN5teUAo10s Hmbr2/9HV2Wl5VTgUeRLrgtOZgssqaAyjeFLOXXZR9ARXcanCdR4PlvVes3MR81yDhOS kzPkw9Ec3g/vb7Req3PQw7lwA2CekbngTuVaTeI77WX+LbIhXTpmXa1+IQlRIPHQtR0d Q93jNSB4cMqQbL2vUeL5FVUTWioY0GADEcXKR9v5ppVLs2QWWw1MXJ4t9Cps0OmkMgz4 qA1oSkCpz2jx71nr3SIzHiKGKFE3mRzJ97R6QBCpEyCJZkX1QhLeX5DGLh/FvI9Z74+Q Aokg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :mime-version:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=Qd/EHq/hNi9U0eDQzSkYHva3vzVuhQ3/uVr2IhrtsQQ=; b=d4TEg4peqXV6VFV1L7Z4wKevgfyea3IGE7bICocvtZ6cydopja6fEQE/glTWLKVQSN Dr5RU1DQrTnkaw//w8jGA61CZPfknQG+MjhBSAuGFrgEYjJh5IeSAVPrCRJJVF2adYGL /XZQ3IeiR111GGGC0kN6L36fcm1CuFlaaKcLy8l8Ws25jjAAIrgpzidvNrAZ/ZLjnYyD L95tAo1dxw+hZNt3wxRnXVpc+gH1nOkGZAJ8D56wj/SOvNv6dNpGcTpbPp/JKQXgOyrT e7kMdC1PltSPh2VY61wnUUD/S2Nh/rE6Pf1q1Ta40jfQ/eJYJZ6wGTwrT3R6ouwH10n2 dBMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=MGRaqrsH; 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=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020aa7d686000000b004bff6dee492si3396226edr.149.2023.04.03.06.43.02; Mon, 03 Apr 2023 06:43:26 -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=@samsung.com header.s=mail20170921 header.b=MGRaqrsH; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbjDCNWp (ORCPT + 99 others); Mon, 3 Apr 2023 09:22:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232520AbjDCNWe (ORCPT ); Mon, 3 Apr 2023 09:22:34 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72DE212061 for ; Mon, 3 Apr 2023 06:22:32 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230403132227euoutp01e5f7bcc5ac1462faf67f0ab251edc4d0~Sb3JgUNpP1624716247euoutp011 for ; Mon, 3 Apr 2023 13:22:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230403132227euoutp01e5f7bcc5ac1462faf67f0ab251edc4d0~Sb3JgUNpP1624716247euoutp011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1680528148; bh=Qd/EHq/hNi9U0eDQzSkYHva3vzVuhQ3/uVr2IhrtsQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MGRaqrsHJe/tM105jDHB0ftOz4tp9ykwUxKohoKXQeZyo/fTZFWFs7pnTJgch+XaC wL30I+NBkQCi7jwOHC0BVgsqKS06FTu2EMa4YOhiV+gpeTOSStNq5avdwfH/LZxBth /X293VQRjzjIueCXtZeJnU/zJdCzUIg7CEnR4EaQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230403132226eucas1p225350ac5d8a5d0d5516b7d1cf8fb6e30~Sb3ILi-3G1849718497eucas1p2G; Mon, 3 Apr 2023 13:22:26 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 3D.F2.09966.213DA246; Mon, 3 Apr 2023 14:22:26 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230403132226eucas1p182e09f5da7bc0bd284d6a8494cd40903~Sb3HzyLKr0206102061eucas1p1D; Mon, 3 Apr 2023 13:22:26 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230403132226eusmtrp2a7dbad3b8c19268ae7c0dcce1a593f16~Sb3HyusYY0200802008eusmtrp2Q; Mon, 3 Apr 2023 13:22:26 +0000 (GMT) X-AuditID: cbfec7f4-d39ff700000026ee-4b-642ad3126dbf Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 08.ED.09583.113DA246; Mon, 3 Apr 2023 14:22:26 +0100 (BST) Received: from localhost (unknown [106.210.248.30]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230403132225eusmtip27a6506bf3fe6270d1a4735114f57705d~Sb3HhyA592060320603eusmtip2R; Mon, 3 Apr 2023 13:22:25 +0000 (GMT) From: Pankaj Raghav To: axboe@kernel.dk, minchan@kernel.org, martin@omnibond.com, hubcap@omnibond.com, brauner@kernel.org, viro@zeniv.linux.org.uk, senozhatsky@chromium.org, akpm@linux-foundation.org, willy@infradead.org, hch@lst.de Cc: devel@lists.orangefs.org, mcgrof@kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, gost.dev@samsung.com, linux-fsdevel@vger.kernel.org, Pankaj Raghav Subject: [PATCH v2 5/5] filemap: remove page_endio() Date: Mon, 3 Apr 2023 15:22:21 +0200 Message-Id: <20230403132221.94921-6-p.raghav@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230403132221.94921-1-p.raghav@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKKsWRmVeSWpSXmKPExsWy7djP87pCl7VSDPquylrMWb+GzWL13X42 i9eHPzFa7N88hcni5oGdTBYrVx9lsmi/28dksfeWtsWevSdZLC7vmsNmcW/Nf1aLk+v/M1vc mPCU0WLZ1/fsFp+XtrBb7N64iM3i/N/jrBa/f8xhcxDymN1wkcVj8wotj8tnSz02repk89j0 a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RwQ8HlmCX79ZVYijMSDbWYi4oTAWqlwddqAwAA X-CMS-MailID: 20230403132226eucas1p182e09f5da7bc0bd284d6a8494cd40903 X-Msg-Generator: CA X-RootMTR: 20230403132226eucas1p182e09f5da7bc0bd284d6a8494cd40903 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230403132226eucas1p182e09f5da7bc0bd284d6a8494cd40903 References: <20230403132221.94921-1-p.raghav@samsung.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762162802469530733?= X-GMAIL-MSGID: =?utf-8?q?1762162802469530733?= page_endio() is not used anymore. Remove it. Signed-off-by: Pankaj Raghav Reviewed-by: Christoph Hellwig --- include/linux/pagemap.h | 2 -- mm/filemap.c | 30 ------------------------------ 2 files changed, 32 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index fdcd595d2294..73ee6ead90dd 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -1076,8 +1076,6 @@ int filemap_migrate_folio(struct address_space *mapping, struct folio *dst, #else #define filemap_migrate_folio NULL #endif -void page_endio(struct page *page, bool is_write, int err); - void folio_end_private_2(struct folio *folio); void folio_wait_private_2(struct folio *folio); int folio_wait_private_2_killable(struct folio *folio); diff --git a/mm/filemap.c b/mm/filemap.c index 6f3a7e53fccf..a770a207825d 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1625,36 +1625,6 @@ void folio_end_writeback(struct folio *folio) } EXPORT_SYMBOL(folio_end_writeback); -/* - * After completing I/O on a page, call this routine to update the page - * flags appropriately - */ -void page_endio(struct page *page, bool is_write, int err) -{ - struct folio *folio = page_folio(page); - - if (!is_write) { - if (!err) { - folio_mark_uptodate(folio); - } else { - folio_clear_uptodate(folio); - folio_set_error(folio); - } - folio_unlock(folio); - } else { - if (err) { - struct address_space *mapping; - - folio_set_error(folio); - mapping = folio_mapping(folio); - if (mapping) - mapping_set_error(mapping, err); - } - folio_end_writeback(folio); - } -} -EXPORT_SYMBOL_GPL(page_endio); - /** * __folio_lock - Get a lock on the folio, assuming we need to sleep to get it. * @folio: The folio to lock