fs/ntfs3: Rework ntfs_utf16_to_nls
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 4 Oct 2021 15:22:45 +0000 (18:22 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 11 Oct 2021 16:28:04 +0000 (19:28 +0300)
commit2c69078851b3d7495eb191158d0bcb9c91a6d148
tree38d1f710736d8a5344c53c25eab7e2bf118251fc
parent9b75450d6c580100611743fa7e690ea3cb47cd4a
fs/ntfs3: Rework ntfs_utf16_to_nls

Now ntfs_utf16_to_nls takes length as one of arguments.
If length of symlink > 255, then we tried to convert
length of symlink +- some random number.
Now 255 symbols limit was removed.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/dir.c
fs/ntfs3/ntfs_fs.h