Skip to content

Commit

Permalink
ntfs3: use file_mnt_idmap helper
Browse files Browse the repository at this point in the history
Let's use file_mnt_idmap() as we do that across the tree.

No functional impact.

Cc: Christian Brauner <[email protected]>
Cc: Konstantin Komarov <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
  • Loading branch information
mihalicyn authored and brauner committed Feb 2, 2024
1 parent f123dc8 commit cc47a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ntfs3/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cc47a05

Please sign in to comment.