]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce166c460b118dd22a837c6abe2e0715f5ffd411
tree4c60e91bb33a791d3d7dac1c112850d5d5fe6239
parentcc38c6802191c6a1cacee0d38b20664505313191
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