Skip to content

Commit 97d4d02

Browse files
committed
Merge tag 'exfat-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat
Pull exfat fix from Namjae Jeon: - Use updated exfat_chain directly instead of snapshot values in rename. * tag 'exfat-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat: exfat: use updated exfat_chain directly during renaming
2 parents 918c30d + 204e6ce commit 97d4d02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/exfat/namei.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,9 @@ static int __exfat_rename(struct inode *old_parent_inode,
11981198
return -ENOENT;
11991199
}
12001200

1201-
exfat_chain_dup(&olddir, &ei->dir);
1201+
exfat_chain_set(&olddir, EXFAT_I(old_parent_inode)->start_clu,
1202+
EXFAT_B_TO_CLU_ROUND_UP(i_size_read(old_parent_inode), sbi),
1203+
EXFAT_I(old_parent_inode)->flags);
12021204
dentry = ei->entry;
12031205

12041206
ep = exfat_get_dentry(sb, &olddir, dentry, &old_bh);

0 commit comments

Comments
 (0)