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: 13198168 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1978CC77B6D for ; Mon, 3 Apr 2023 13:22:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DFF99900002; Mon, 3 Apr 2023 09:22:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A40BE900006; Mon, 3 Apr 2023 09:22:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7356D900004; Mon, 3 Apr 2023 09:22:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 284AD6B0075 for ; Mon, 3 Apr 2023 09:22:32 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id EBACDABE0A for ; Mon, 3 Apr 2023 13:22:31 +0000 (UTC) X-FDA: 80640144102.19.0CF5B26 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by imf25.hostedemail.com (Postfix) with ESMTP id 6198BA0006 for ; Mon, 3 Apr 2023 13:22:29 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=MGRaqrsH; spf=pass (imf25.hostedemail.com: domain of p.raghav@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=p.raghav@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680528149; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Qd/EHq/hNi9U0eDQzSkYHva3vzVuhQ3/uVr2IhrtsQQ=; b=DHqm4I/Bjmf9tBDoiWZeS4hcupvXoREAV5PE3h55hamVDZjlsTGmnID+faLR0SKZT/8qyS oBffaCu35RgTs9AhLYLpjKhCQbFEh2azBY+eLzfF1upQ6sL3xH5tNApwzZUOusqPdtvyeW PEJYcGNEtCzjUFe0Wn/CgqM+ATOmQv4= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=MGRaqrsH; spf=pass (imf25.hostedemail.com: domain of p.raghav@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=p.raghav@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680528149; a=rsa-sha256; cv=none; b=3+W+XQxKh6AXKH/lMaYVbgDqTpuO9nBDuK6tJtyICjwJHaNqKiYDvl0SzibWRBT0fC0R70 mMsXqX840gcFJy9UINLKw03dMJCqFnEfBOjUxjCLlR4oB0SgTmoBmLwW1RqfZzFgVVRoVf d1a+Wnlhp0hUR7pyG9a1PwhuQqd3PV4= Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230403132227euoutp01fb3f26490c02e000654383401f52bbfa~Sb3JgRkxY1586215862euoutp01C for ; Mon, 3 Apr 2023 13:22:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230403132227euoutp01fb3f26490c02e000654383401f52bbfa~Sb3JgRkxY1586215862euoutp01C 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 aRK7x4kZv1k8GqbeYvPYfbOBzePX7TusHn1bVjF6fN4k57HpyVumAJ4oLpuU1JzMstQifbsE roy33bNYC+bxVay//4GxgfEsdxcjJ4eEgInE3VlvGLsYuTiEBFYwSjQ+XMvexcgB5HxhlOgM A6kREvjMKHFkth5M/bK+OUwQ9csZJe4f2gzV/IJRYv7BJYwgzWwCWhKNnewgcRGBW4wSb3pm g3UwC9xnlJi3ey8TyChhoFEdTzexgdgsAqoSy1a2gdm8ApYSSz+/YYJYJy+x/+BZZhCbU8BK onH6XEaIGkGJkzOfsIDYzEA1zVtnM4MskBDYzimxZNJmZpArJARcJDY+TIaYIyzx6vgWdghb RuL/zvlQ86slnt74DdXbwijRv3M9G0SvtUTfmRwQk1lAU2L9Ln2IckeJBW/vQ03nk7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c7SK8ISHjZheMsIA6zwHNGiTVTfjODNAgDbeh4ugmsmUVAVWLZyjYwm1fAUmLp 5zdMEAvkJfYfPAtWzylgJdE4fS4jxDJLia8Xb7FC1AtKnJz5hAXEZgaqb946m3kCo8AsJKlZ SFILGJlWMYqklhbnpucWG+kVJ+YWl+al6yXn525iBMbwtmM/t+xgXPnqo94hRiYOxkOMEhzM SiK8ql1aKUK8KYmVValF+fFFpTmpxYcYTYHunsgsJZqcD0wieSXxhmYGpoYmZpYGppZmxkri vJ4FHYlCAumJJanZqakFqUUwfUwcnFINTDxHo9drrbvzV2V7wYpNCa1enCkzFmk4ye/O3tt2 XNxmio7Sy+bzieunTODQaLq12+xdiq7KcgnV9Jv+/GuNzkz7fl+5TTxkV+C32iyf+OZLfayL w9j62y/PXdQ+mZmh6FOcgeDbk89FDtw9kLbQAJgO+2wiHBwOdKdck77HvXr3igD22NeSFqIT +3d3Oi1SXPJ+99V3p1ga+I3ktzTY1ii2GSvseHLk2se/JpcFbmnsktac03jnfvqVRU+t5/9e FTz9rOjiFXaLU0wbXs5rD5q0/oLxNstP87YZla85rvr7Hcd0kdOemx9Gq+xUu7/tt+otkU0Z 9eUGs+OipGXvmM5p2hE841RwQ8HlmCX79ZVYijMSDbWYi4oTAWqlwddqAwAA 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-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 6198BA0006 X-Rspam-User: X-Stat-Signature: pmzbddwrngawr658h3pz7kzpysdsek3b X-HE-Tag: 1680528149-931499 X-HE-Meta: U2FsdGVkX18BCNS1Fh+sM1f24Uh1R0Kas2O4Cjb4ZCtQKCyeUCfeCf9TjFylfW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p9AGzGzwHDtIhQPDiriy6GTh49UISV31i 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: 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