Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp645489rwp; Wed, 12 Jul 2023 21:11:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJ/cbzuIkraOcGOI0/W+t2Go3osihgHphGdePMe1NvM6ybP8oNx9q3CAicd16SX9+sh4jF X-Received: by 2002:a17:902:da89:b0:1b8:a6be:ea82 with SMTP id j9-20020a170902da8900b001b8a6beea82mr5351122plx.26.1689221480766; Wed, 12 Jul 2023 21:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689221480; cv=none; d=google.com; s=arc-20160816; b=s7Fq/rpqCzcYvnJpIL9lF6268pTbQvcEQykRtMof/Rl+TY4HcsWadhPbYVQCAS7leG v8IyJp+DJnjkG2FaENdYiORUpj/0gbTlQnIE913VgR3kcuoJJZqfeukYpbVpiJWnymwg 3S4GfQGSUDbNklzNmjLvJlblFugo0GDq1fT0FBOT1BHT/9U07al82Ts897G8mej+IoS7 j5WHuHheCwWqlSXfOqG8ks6V7CiGMUtrAVO5MxLCaXCZzq/xIRDVS6pTq1oGOx1pztc1 uXTWIlOYmmIQafZAQd5DDkjeeiYA3mnThiT4q1B974+Xbws1N705aSAgklFQrSK53Hv+ 9UGg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JVMDLCJl/ahr8KIqhVfeFDOeM/wgOLTi12cImSKMuZE=; fh=nmZyTsmztyk380IvEwoWJ6pEKhJ6Nps7FRu2tNkUHY4=; b=nliN91oK0WiSXqQwXweJIqgq14x8LPOaJJXYBLwq6XZOHtkDpoxm0boHoPVulG8qBQ W/7OrAjIcaPBE00UbHkXEtnl1Evfjw/T5csV36YwlCUCoKnZ2KaWkyJmeEoS1XwqA/0x 70gTUOJV/kU/U5ECp67f6wL+wcvGZ0ltEJlNzhdmrhfIR09+r08yb1exJmvDudi0kGvV TBv48Cvb83oGdQmWoTL4v8ANV6u5wjKSO9ebU8nnqUsP6BDzVfY3IUAIRkkgEFr+Bvcc 2aAGkY3i+M8E2CnY40LbPxUUcQjoTblr8fRFepaW4cj5zPHFmEyFEJXHfB5LbjZKbDyd 4TtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="Y1f/pCg0"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j184-20020a638bc1000000b0055c1f8b4613si4349980pge.723.2023.07.12.21.11.07; Wed, 12 Jul 2023 21:11:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@infradead.org header.s=casper.20170209 header.b="Y1f/pCg0"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232133AbjGMDzX (ORCPT + 99 others); Wed, 12 Jul 2023 23:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232167AbjGMDzW (ORCPT ); Wed, 12 Jul 2023 23:55:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CCA51FC7; Wed, 12 Jul 2023 20:55:21 -0700 (PDT) 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=JVMDLCJl/ahr8KIqhVfeFDOeM/wgOLTi12cImSKMuZE=; b=Y1f/pCg03zeVz2SDpGIeEbHPg2 59lT4PRUm9yNtQwqsolrKPZ5OQR2LEA/0PnNwdt9pYSJUKh8w3RkcI1/H+BDlHjgGW+PMtysN+/np HyzzTc4eyhO137g8RrlJXGDKxIqg+2ssOYtiLLkvjwY//NKSYzcS28klzgb8aONWjunn5VBwd74+a G6ZOtv5+iD+tZU/jK8q6vNzQ7erA6DfjOrwrWeSf6iM12PdPwoeiII8JVyMlM8wWz4/1QK8bEZ+0K darR+0VjipCVODKe32gLL+cdbLNzUTK51Sfhutza7+wgYgmTvZEcOAxuviRNB2pSEkcS9C+5FJwY4 OwWM2/sQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qJnQA-00HMrm-Jc; Thu, 13 Jul 2023 03:55:14 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , David Sterba , linux-fsdevel@vger.kernel.org, Pankaj Raghav , Konstantin Komarov , ntfs3@lists.linux.dev, "Theodore Tso" , Jan Kara , linux-ext4@vger.kernel.org Subject: [PATCH 5/7] ntfs3: Convert ntfs_get_block_vbo() to use a folio Date: Thu, 13 Jul 2023 04:55:10 +0100 Message-Id: <20230713035512.4139457-6-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230713035512.4139457-1-willy@infradead.org> References: <20230713035512.4139457-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org Remove a user of set_bh_page(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/ntfs3/inode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c index dc7e7ab701c6..8ae572aacc69 100644 --- a/fs/ntfs3/inode.c +++ b/fs/ntfs3/inode.c @@ -554,7 +554,7 @@ static noinline int ntfs_get_block_vbo(struct inode *inode, u64 vbo, struct super_block *sb = inode->i_sb; struct ntfs_sb_info *sbi = sb->s_fs_info; struct ntfs_inode *ni = ntfs_i(inode); - struct page *page = bh->b_page; + struct folio *folio = bh->b_folio; u8 cluster_bits = sbi->cluster_bits; u32 block_size = sb->s_blocksize; u64 bytes, lbo, valid; @@ -569,7 +569,7 @@ static noinline int ntfs_get_block_vbo(struct inode *inode, u64 vbo, if (is_resident(ni)) { ni_lock(ni); - err = attr_data_read_resident(ni, page); + err = attr_data_read_resident(ni, &folio->page); ni_unlock(ni); if (!err) @@ -642,17 +642,17 @@ static noinline int ntfs_get_block_vbo(struct inode *inode, u64 vbo, */ bytes = block_size; - if (page) { + if (folio) { u32 voff = valid - vbo; bh->b_size = block_size; off = vbo & (PAGE_SIZE - 1); - set_bh_page(bh, page, off); + folio_set_bh(bh, folio, off); err = bh_read(bh, 0); if (err < 0) goto out; - zero_user_segment(page, off + voff, off + block_size); + folio_zero_segment(folio, off + voff, off + block_size); } } -- 2.39.2