ntfs3: use file_mnt_idmap helper
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Mon, 29 Jan 2024 18:00:23 +0000 (19:00 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 2 Feb 2024 12:11:49 +0000 (13:11 +0100)
Let's use file_mnt_idmap() as we do that across the tree.

No functional impact.

Cc: Christian Brauner <brauner@kernel.org>
Cc: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Cc: <ntfs3@lists.linux.dev>
Cc: <linux-fsdevel@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Link: https://lore.kernel.org/r/20240129180024.219766-1-aleksandr.mikhalitsyn@canonical.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ntfs3/namei.c

index ee3093be51701e78d1e02f6f30a7b5a4019831a0..144aa80cca433e5fd3c3722b149b879cc32e3254 100644 (file)
@@ -419,7 +419,7 @@ static int ntfs_atomic_open(struct inode *dir, struct dentry *dentry,
         * fnd contains tree's path to insert to.
         * If fnd is not NULL then dir is locked.
         */
-       inode = ntfs_create_inode(mnt_idmap(file->f_path.mnt), dir, dentry, uni,
+       inode = ntfs_create_inode(file_mnt_idmap(file), dir, dentry, uni,
                                  mode, 0, NULL, 0, fnd);
        err = IS_ERR(inode) ? PTR_ERR(inode) :
                              finish_open(file, dentry, ntfs_file_open);