From patchwork Wed Nov 16 02:10:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 1708 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3048632wru; Tue, 15 Nov 2022 18:11:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf488quau52LrR9fDDIEJb+B2RSGLbJsJ4yo4SrkjOr+nk46xg4OlS/Uy1ij0CZBpKXRo7mS X-Received: by 2002:a17:902:eb87:b0:187:282c:9ba4 with SMTP id q7-20020a170902eb8700b00187282c9ba4mr6825910plg.42.1668564674840; Tue, 15 Nov 2022 18:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668564674; cv=none; d=google.com; s=arc-20160816; b=Ytu1J9cv3XpzRPMIuz40RUq6+9O4DSLS7fypFObTL+VSMAxigAa0RjFq2xpuL6mHiJ T7c52TGn5lVxEz1nwlCuJmPmF5BQycP3Vuzi1cs0+GTWZtDyA4w51YnsbMJ4SDLcOn/O ulDM74g+EuwkdiI5y3yQ/5C6Q4uNAXYtNW8CbS5lemddVGLUU3ieIZafUBOaPEbYohHZ l9j/r4/HSHrYtB6Zu57qT7rPIzCfat6D/SxLxgDNn/SIypc5z5Am9hOqfLZnC+/9V6Ek eYo27vzmPSMWjusqLyh7GsMBlLhQ8BLowg2rdsrdV1u35WLdBYgEsmIVfJfUqanjXKfE WN+A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=xgVYad0b3VkkkVGbrLBOkGV7CIzlD/ERh5I/AWp2m3k=; b=vxMe2qtVf/wd1xnVgtOMn6fuUX8jSiyK2qhvF3jj5Hj9y5MR+/8ex6c0leyqv8B/v4 ESoI2RRbd1ZqRxy2x7IvOm6HZxyCJHLhX7cl1ncyeSDewYJe5giXpuEaf0NTspZ16SD6 m1wlYPbWk6CBiMijV6E+/yXFb2z/Z3oLSCBC7XmIeBwZmMCAeFVFqU9iS0ahY0eYjQO9 pmSTuV3iW9gV6UPtmSb/n9ypiOZBvHjHnbmunwtvzDhwfesKTvAy0PKvAhF0OmbuZjkw Pw2XmoC6iM+8Hsrtxl241Mjw5v8gMK07vlT5xOk5Sv5p20x5aN6p+f33L0kZdncdsmyQ OHrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hIqoW9RG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a056a00130200b005453554828bsi13594206pfu.204.2022.11.15.18.11.01; Tue, 15 Nov 2022 18:11:14 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=hIqoW9RG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231465AbiKPCKS (ORCPT + 99 others); Tue, 15 Nov 2022 21:10:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiKPCKQ (ORCPT ); Tue, 15 Nov 2022 21:10:16 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0FCC317DF; Tue, 15 Nov 2022 18:10:15 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id c15-20020a17090a1d0f00b0021365864446so979735pjd.4; Tue, 15 Nov 2022 18:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xgVYad0b3VkkkVGbrLBOkGV7CIzlD/ERh5I/AWp2m3k=; b=hIqoW9RGKL14ijfujAHMoLC9VF7HPT10Y9eBT5xHlV48w7ZOwKXLbOUgUTQKaWOfWK IVuVj7zO+xNHtyhBogg1gvHnG12lLJnJIQHYEcLMUyXE/KHAYpfxtEez0p7vF/7Vwd5C cfwrbbcHXnK4ibVa2hHUiZkDQ0i15H+uXvB9f7uChacl0Ozzs+06/AmrNMfCrUroYKg8 GU11/VDR11N9DHrW//WX++Euy0Bj+ikJsWL+d/X7kym0bXpMLP+JWTYs3wp8nXHid1w4 rIzhVUgkjUCj7QmJnBeGTuptJ61eTVluqQPtZOiT9URJSuugfHmNB9+/KFoPITK6y5ts 4ZZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xgVYad0b3VkkkVGbrLBOkGV7CIzlD/ERh5I/AWp2m3k=; b=wXfueCjZyR71YJ6+eDm1GzfGeja86RH2eqXAmFeUd6p7l7lvp29OeMFwakVNguNcTS 81RjtgSXGmUAyooQfiGUWkY6dREBucfa8y/SHvBIfWs/phMeUwe6muREVaYNs7TsaWEQ NbYg9vVNV/oCVIzUdvaKBqQHhCrm9OWo1JF5UhQ+TdP4Z/eClgPs49t/mcWKc3aiYpZZ qeYtE/2PwmUxVlDJvyaQOEw169KS+JsA5QVWkDhy3kVvGsAuFyCjThcppFqF8WL17/bV w7qTAq9zV09siCaeXEFbMfxF0UCw6srwmUZOfKvrakztJztT6Epxp0YS8uySDus8+zr9 QeGQ== X-Gm-Message-State: ANoB5pnMUUp/e7mJEuVCF9ofgAgtQZnDC99JhirU8DTomlmAnO9fLitT HHipBF+3pHV/Wi1vFdWPHGuI0DQA9y6lgg== X-Received: by 2002:a17:90a:7804:b0:211:2d90:321 with SMTP id w4-20020a17090a780400b002112d900321mr1352107pjk.84.1668564615228; Tue, 15 Nov 2022 18:10:15 -0800 (PST) Received: from fedora.hsd1.ca.comcast.net ([2601:644:8002:1c20::2c6b]) by smtp.googlemail.com with ESMTPSA id e18-20020a17090301d200b0018691ce1696sm10782926plh.131.2022.11.15.18.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 18:10:14 -0800 (PST) From: "Vishal Moola (Oracle)" To: linux-mm@kvack.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, akpm@linux-foundation.org, willy@infradead.org, naoya.horiguchi@nec.com, tytso@mit.edu, "Vishal Moola (Oracle)" Subject: [PATCH 0/4] Removing the try_to_release_page() wrapper Date: Tue, 15 Nov 2022 18:10:07 -0800 Message-Id: <20221116021011.54164-1-vishal.moola@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1749616872325430296?= X-GMAIL-MSGID: =?utf-8?q?1749616872325430296?= This patchset replaces the remaining calls of try_to_release_page() with the folio equivalent: filemap_release_folio(). This allows us to remove the wrapper. The set passes fstests on ext4 and xfs. Vishal Moola (Oracle) (4): ext4: Convert move_extent_per_page() to use folios khugepage: Replace try_to_release_page() with filemap_release_folio() memory-failure: Convert truncate_error_page() to use folio folio-compat: Remove try_to_release_page() fs/ext4/move_extent.c | 47 +++++++++++++++++++++++------------------ include/linux/pagemap.h | 1 - mm/folio-compat.c | 6 ------ mm/khugepaged.c | 23 ++++++++++---------- mm/memory-failure.c | 5 +++-- 5 files changed, 41 insertions(+), 41 deletions(-)