From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5DF04C7114A for ; Tue, 17 Jun 2025 05:11:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:In-Reply-To:MIME-Version:References:Message-ID:To:From:Date:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=On64trZG32ZbEw6W1MHrCQAxPAtXuwBilvlc9Be14cU=; b=NwLNEsv532euTmozgctkFQyGt8 fr59XNsU61hwOhOyUVI2YNy9H6e3NxchHM7yYdpt8olrd4L29uXYPNGV1dwZF96M9WOoVLweSMdVz deBrMNXp+1o0/k06Q+jqn5RQCCJh6n+VCh2tCowkRQlR6kjnvR6V7XDCICeIrq7E2aVk=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1uRObK-0006Fu-VK; Tue, 17 Jun 2025 05:11:14 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1uRObJ-0006Fi-Ux; Tue, 17 Jun 2025 05:11:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7hewv5VaHf/nCFVYzE18Jb3sDfwjWx9bJqENJtpan9o=; b=IsZwhGNJZefPFCtH1xotZKpYSU IFUtkTIOXhMtYh2sx0AzaifDYvTWV1/IGWS58/qbjH9punv2wE/lPhc9OqotVQnnQusqrHfXTLyiI KFzd/FpZD+uvDHE2ipExUeXwHpkWZPj8iQLTJlubZ2QAXUKQjTvYvrGoItxhHqHdvn+s=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7hewv5VaHf/nCFVYzE18Jb3sDfwjWx9bJqENJtpan9o=; b=BtBCcBT/Ekb9OQVEwpjLEsc2vK di8l5yZS34YCnFvN/iuHdoh7d4Lh9mqldZDoGaeyxR/+gAGFNDNuaBVqK8HW+YAzppoAbkvsPPNmO Dd1xP8Z1anYQUDYduVKkdpSKJrFqW6yLiD7X+rLxm+y66oyWhcRWzXe1/1IvfduCRJ9k=; Received: from bombadil.infradead.org ([198.137.202.133]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1uRObJ-0002hV-J2; Tue, 17 Jun 2025 05:11:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7hewv5VaHf/nCFVYzE18Jb3sDfwjWx9bJqENJtpan9o=; b=JLzFVcD4P4hX82nyMOI+BRPTFS 9m9nUf8QSnN3KcOf1hfPPNg8SY5CD8KGmTwZG9p42mwem0h3+g+jr8vmH1IdJ03DA5flPOfwfb8Kb 2p/Z3NPif2HWA7V7Zh1b/Hzs0cuKS7D2jEWqmC6rRRVe5v+D58zBUGfE4pJ1gAH0HUd1EKkuocvQE /AS7xYTlLDrNF7H7t6M6DnRrb6AncDawE5sQF8d0UGBLNipdl/wWjLzy7Aye1Ze+VzA+g0jzxlIg8 VUglo0acb2sgxrdZjdYWcBo4907Ol02gnYVbwtHB4bd+XE+ZjOsUlox9yo8MazTrsTyF2g2LImZhO mwKximfw==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1uROac-00000006E8g-3Ody; Tue, 17 Jun 2025 05:10:30 +0000 Date: Mon, 16 Jun 2025 22:10:30 -0700 From: Christoph Hellwig To: Lorenzo Stoakes Message-ID: References: <8d389f4994fa736aa8f9172bef8533c10a9e9011.1750099179.git.lorenzo.stoakes@oracle.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8d389f4994fa736aa8f9172bef8533c10a9e9011.1750099179.git.lorenzo.stoakes@oracle.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Headers-End: 1uRObJ-0002hV-J2 Subject: Re: [f2fs-dev] [PATCH 01/10] mm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Latchesar Ionkov , nvdimm@lists.linux.dev, Paulo Alcantara , dri-devel@lists.freedesktop.org, ceph-devel@vger.kernel.org, Mike Marshall , linux-xfs@vger.kernel.org, Tyler Hicks , devel@lists.orangefs.org, Shyam Prasad N , Jan Harkes , linux-um@lists.infradead.org, Joel Becker , Ronnie Sahlberg , John Paul Adrian Glaubitz , Eric Van Hensbergen , Christian Brauner , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Andrew Morton , Trond Myklebust , Dave Kleikamp , Sandeep Dhavale , Simona Vetter , linux-cifs@vger.kernel.org, linux-nilfs@vger.kernel.org, codalist@coda.cs.cmu.edu, Namjae Jeon , ecryptfs@vger.kernel.org, Yangtao Li , Jani Nikula , ocfs2-devel@lists.linux.dev, Pedro Falcato , OGAWA Hirofumi , linux-block@vger.kernel.org, Theodore Ts'o , linux-f2fs-devel@lists.sourceforge.net, Hongbo Li , Anna Schumaker , Martin Brandenburg , Kees Cook , Yuezhang Mo , Carlos Maiolino , Joonas Lahtinen , Chris Mason , linux-mtd@lists.infradead.org, Jaegeuk Kim , Marc Dionne , Tvrtko Ursulin , linux-afs@lists.infradead.org, Naohiro Aota , Miklos Szeredi , Matthew Wilcox , coda@cs.cmu.edu, Viacheslav Dubeyko , Ilya Dryomov , linux-ext4@vger.kernel.org, Amir Goldstein , intel-gfx@lists.freedesktop.org, Damien Le Moal , Rodrigo Vivi , Dan Williams , Gao Xiang , David Howells , linux-nfs@vger.kernel.org, linux-mm@kvack.org, samba-technical@lists.samba.org, Steve French , ntfs3@lists.linux.dev, linux-erofs@lists.ozlabs.org, jfs-discussion@lists.sourceforge.net, Jan Kara , linux-aio@kvack.org, Dominique Martinet , Christian Schoenebeck , Bob Copeland , Konstantin Komarov , Joseph Qi , Andreas Dilger , Mikulas Patocka , David Airlie , Anton Ivanov , Yue Hu , Richard Weinberger , Mark Fasheh , linux-bcachefs@vger.kernel.org, Jann Horn , Josef Bacik , "Liam R . Howlett" , Tom Talpey , Hans de Goede , Bharath SM , "Tigran A . Aivazian" , David Sterba , Xiubo Li , Ryusuke Konishi , Vlastimil Babka , Jens Axboe , Sungjong Seo , v9fs@lists.linux.dev, Kent Overstreet , linux-unionfs@vger.kernel.org, Benjamin LaHaise , Jeffle Xu , Johannes Berg , Johannes Thumshirn , David Woodhouse , linux-karma-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, Alexander Viro Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On Mon, Jun 16, 2025 at 08:33:20PM +0100, Lorenzo Stoakes wrote: > The call_mmap() function violates the existing convention in > include/linux/fs.h whereby invocations of virtual file system hooks is > performed by functions prefixed with vfs_xxx(). > > Correct this by renaming call_mmap() to vfs_mmap(). This also avoids > confusion as to the fact that f_op->mmap_prepare may be invoked here. > > Also rename __call_mmap_prepare() function to vfs_mmap_prepare() and adjust > to accept a file parameter, this is useful later for nested file systems. > > Finally, fix up the VMA userland tests and ensure the mmap_prepare -> mmap > shim is implemented there. Can we please just kill these silly call_* helpers instead? _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel