Skip to content

Commit

Permalink
Merge tag 'exfat-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Linus Torvalds committed Jun 26, 2022
2 parents 918c30d + 204e6ce commit 97d4d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/exfat/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,9 @@ static int __exfat_rename(struct inode *old_parent_inode,
return -ENOENT;
}

exfat_chain_dup(&olddir, &ei->dir);
exfat_chain_set(&olddir, EXFAT_I(old_parent_inode)->start_clu,
EXFAT_B_TO_CLU_ROUND_UP(i_size_read(old_parent_inode), sbi),
EXFAT_I(old_parent_inode)->flags);
dentry = ei->entry;

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

0 comments on commit 97d4d02

Please sign in to comment.