From patchwork Wed Mar 22 13:50:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Raghav X-Patchwork-Id: 13184081 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 F11A3C6FD1F for ; Wed, 22 Mar 2023 13:50:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D58046B007D; Wed, 22 Mar 2023 09:50:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D06936B0080; Wed, 22 Mar 2023 09:50:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ABD696B007D; Wed, 22 Mar 2023 09:50:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 8F2346B007E for ; Wed, 22 Mar 2023 09:50:25 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 6132FC04B8 for ; Wed, 22 Mar 2023 13:50:25 +0000 (UTC) X-FDA: 80596668810.15.7957324 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by imf09.hostedemail.com (Postfix) with ESMTP id BB6D6140021 for ; Wed, 22 Mar 2023 13:50:22 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b="hJmJT4/T"; spf=pass (imf09.hostedemail.com: domain of p.raghav@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=p.raghav@samsung.com; dmarc=permerror reason="Multiple policies defined in DNS" header.from=samsung.com (policy=permerror) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679493023; 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=NXnjKn2cet8GTE/z2V/DuUTURZHHMNFNeBoLUHg+WSnCA5GP3GTskamaQ5dW8INhWN1Sa8 cJwXMjsyk4eRU6emnhX0Cn3P3ONneOCM4QLS4c/1pXroOUk3KgXwsnNtY24xOpv6pGBQ5i 0IoXYp/vGb9dGAJMw9T7ok6vygDPpA0= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b="hJmJT4/T"; spf=pass (imf09.hostedemail.com: domain of p.raghav@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=p.raghav@samsung.com; dmarc=permerror reason="Multiple policies defined in DNS" header.from=samsung.com (policy=permerror) ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679493023; a=rsa-sha256; cv=none; b=zlOxxFX1m4xcjvCI2fyPloeoauOm2A6jodD0rm4WUAGqlUeNn5GYd8hp6Uxa0RQn8oqp29 HxxApAi8/HLzCaJN0s8XbXy3R0yz21MKaxYw4PLJXClB0+CoPiZuKYceDexQ5BgaSR8Kyh kwkXtFxSL0ie2schOF9NHtS3jiHoszE= Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230322135020euoutp016aa46f5214adcd5dc3167c3b3f1dca85~OwgEGNfN22200822008euoutp01D for ; Wed, 22 Mar 2023 13:50:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230322135020euoutp016aa46f5214adcd5dc3167c3b3f1dca85~OwgEGNfN22200822008euoutp01D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1679493020; bh=Qd/EHq/hNi9U0eDQzSkYHva3vzVuhQ3/uVr2IhrtsQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hJmJT4/TDHDQkIqtbVSMoahNTDwVKD1u4vrCHnRXcUm63vWUcZ+RGNJzDFvbLlc0V 6z5abCG9rWAFXS9+BMc1UvhiwMd1V3GY5dCE99DNVCd2MHxpcFaDDuC/Y+xsZsdjBC LOTBVHFCv32cWVZ6WYvSmWiesLszDxGcA9ywsTbI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230322135018eucas1p25c3a3715ad75a1e888ca3a12b22cd7e0~OwgCe8JE70616106161eucas1p2d; Wed, 22 Mar 2023 13:50:18 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 51.94.09503.A970B146; Wed, 22 Mar 2023 13:50:18 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230322135018eucas1p2dd82762cf7d2c0c5b5482a1d150ba369~OwgCAskCN0614706147eucas1p21; Wed, 22 Mar 2023 13:50:18 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230322135018eusmtrp258a3a526308b718ec79346250679f051~OwgB--C8t0726007260eusmtrp2M; Wed, 22 Mar 2023 13:50:18 +0000 (GMT) X-AuditID: cbfec7f2-ea5ff7000000251f-e7-641b079ac88c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5E.6E.09583.A970B146; Wed, 22 Mar 2023 13:50:18 +0000 (GMT) Received: from localhost (unknown [106.210.248.108]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230322135018eusmtip2b06034e3955f717af8c7e270000bacfb~OwgBwcMLu2805428054eusmtip2B; Wed, 22 Mar 2023 13:50:18 +0000 (GMT) From: Pankaj Raghav To: senozhatsky@chromium.org, viro@zeniv.linux.org.uk, axboe@kernel.dk, willy@infradead.org, brauner@kernel.org, akpm@linux-foundation.org, minchan@kernel.org, hubcap@omnibond.com, martin@omnibond.com Cc: mcgrof@kernel.org, devel@lists.orangefs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, gost.dev@samsung.com, Pankaj Raghav Subject: [RFC v2 5/5] filemap: remove page_endio() Date: Wed, 22 Mar 2023 14:50:13 +0100 Message-Id: <20230322135013.197076-6-p.raghav@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230322135013.197076-1-p.raghav@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHKsWRmVeSWpSXmKPExsWy7djPc7qz2KVTDL6/NbeYs34Nm8Xqu/1s Fq8Pf2K02L95CpPFzQM7mSza7/YxWey9pW2xZ+9JFovLu+awWdxb85/V4uT6/8wWNyY8ZbRY 9vU9u8XnpS3sFrs3LmKzOP/3OKvF7x9z2BwEPWY3XGTx2LxCy+Py2VKPTas62Tw2fZrE7nFi xm8Wj4apt9g8ft2+w+rRt2UVo8fnTXIem568ZQrgjuKySUnNySxLLdK3S+DKeNs9i7VgHl/F +vsfGBsYz3J3MXJySAiYSMy/fZW5i5GLQ0hgBaPEnb0TWCGcL4wSfYeuMEI4nxkl9s57xATT smjxH6iq5YwSN+cfYYFwXjJKHD+8mr2LkYODTUBLorGTHSQuInCGUWJK0wxGkG5mgfuMEqf3 soDYwgJGEl0LVoDZLAKqEu+WPGcHsXkFrCSmbwK5A2SbvMT+g2eZQWxOAWuJR4umsUHUCEqc nPmEBWKmvETz1tlgT0gIrOaUWDTlHQtEs4vEnWMvmSFsYYlXx7ewQ9gyEv93zod6p1ri6Y3f UM0tjBL9O9ezgX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CQaO9lB wiICNxgl2lfpgcxhBim5/HQ2M0hCWMBIomvBChYQm0VAVeLdkudgDbwCVhLTN01ghZgvL7H/ 4Fmwek4Ba4lHi6ZB7bKSuLx/EitEvaDEyZlPwOYwA9U3b53NPIFRYBaS1CwkqQWMTKsYRVJL i3PTc4uN9IoTc4tL89L1kvNzNzECo3XbsZ9bdjCufPVR7xAjEwfjIUYJDmYlEV43ZokUId6U xMqq1KL8+KLSnNTiQ4ymQHdPZJYSTc4Hpou8knhDMwNTQxMzSwNTSzNjJXFez4KORCGB9MSS 1OzU1ILUIpg+Jg5OqQamqAs7O4KSZc9I+En2a19JXN/2+fsCjTPheYaHv2xWUWgSVvnxM475 e/Up5SRhl6arN3Mq9k6//Vh1355v6jNV/X6fqC49d2vWhNjVZhXrfnAWvvNMX3WDzfj8FJmU 2+WJi9/0s99eX1ontXpC/5Sv5/afvKp45snlrrgnt+7MS1ukVxNnsvZbjO7OPr6uT56L46bp Wc6UCtrKnBXne/zZjwdu8ZWM4rU65s/m3NVlvv2m8qSVTjb/0otFflXvH9hZ1YRGH9sYe613 yVmHW3OmvLF93rND7clW+/rl5yVjPq/bfdYk7wDP0kIx8xn9YlnelwojX+9LsghMaJZo+G51 u6KUzfdsfiaH2EErXptyJZbijERDLeai4kQAusTwxl8DAAA= X-CMS-MailID: 20230322135018eucas1p2dd82762cf7d2c0c5b5482a1d150ba369 X-Msg-Generator: CA X-RootMTR: 20230322135018eucas1p2dd82762cf7d2c0c5b5482a1d150ba369 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230322135018eucas1p2dd82762cf7d2c0c5b5482a1d150ba369 References: <20230322135013.197076-1-p.raghav@samsung.com> X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: nxt5p3z47k688mqabppzo4joi91cf7ux X-Rspamd-Queue-Id: BB6D6140021 X-HE-Tag: 1679493022-750055 X-HE-Meta: U2FsdGVkX19Ej7Zg2Zx0q5zBAcC2+Hh3pQBpk45O41WMixJ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MkWtbEh/EewS2JcLDmRn589Y74+UbgGYGqj852Vssc4YiechVZCwKnHOfNLr 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 --- 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