ntfs: fix incorrect size of symbolic link

This patch fixes the issue where a symbolic link size is displayed as 0.

Cc: stable@vger.kernel.org # v7.1
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
Hyunchul Lee 2026-06-15 08:49:52 +09:00 committed by Namjae Jeon
parent 5aec1efb11
commit 05a5ff86a7

View File

@ -1199,6 +1199,9 @@ static int ntfs_read_locked_inode(struct inode *vi)
else
vi->i_blocks = ni->allocated_size >> 9;
if (S_ISLNK(vi->i_mode) && ni->target)
vi->i_size = strlen(ni->target);
ntfs_debug("Done.");
return 0;
unm_err_out: