fs/ntfs3: Move ni_lock_dir and ni_unlock into ntfs_create_inode
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 23 Sep 2021 15:04:26 +0000 (18:04 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 24 Sep 2021 14:39:57 +0000 (17:39 +0300)
commitd562e901f25d275b55b0496fe01935beeff0ed37
tree4c60e91bb33a791d3d7dac1c112850d5d5fe6239
parent6c1ee4d304983d2f68bf7639d5912f781398d5ac
fs/ntfs3: Move ni_lock_dir and ni_unlock into ntfs_create_inode

Now ntfs3 locks mutex for smaller time.
Theoretically in successful cases those locks aren't needed at all.
But proving the same for error cases is difficult.
So instead of removing them we just move them.

Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/inode.c
fs/ntfs3/namei.c