Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ntfs: fix WSL ea restore condition

Use NTFS_VOL_GID(not NTFS_VOL_UID) for restoring the gid, and call
ntfs_ea_get_wsl_inode() only when $EA_INFORMATION exists.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>

authored by

Hyunchul Lee and committed by
Namjae Jeon
a7325868 ea3566a3

+4 -4
+1 -1
fs/ntfs/ea.c
··· 368 368 i_uid_write(inode, le32_to_cpu(v)); 369 369 } 370 370 371 - if (!(flags & NTFS_VOL_UID)) { 371 + if (!(flags & NTFS_VOL_GID)) { 372 372 /* Load gid to lxgid EA */ 373 373 err = ntfs_get_ea(inode, "$LXGID", sizeof("$LXGID") - 1, &v, 374 374 sizeof(v));
+3 -3
fs/ntfs/inode.c
··· 865 865 } 866 866 skip_attr_list_load: 867 867 err = ntfs_attr_lookup(AT_EA_INFORMATION, NULL, 0, 0, 0, NULL, 0, ctx); 868 - if (!err) 868 + if (!err) { 869 869 NInoSetHasEA(ni); 870 - 871 - ntfs_ea_get_wsl_inode(vi, &dev, flags); 870 + ntfs_ea_get_wsl_inode(vi, &dev, flags); 871 + } 872 872 873 873 if (m->flags & MFT_RECORD_IS_DIRECTORY) { 874 874 vi->i_mode |= S_IFDIR;