mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 02:31:27 +02:00
bcachefs: unlink: casefold d_invalidate
casefolding results in additional aliases on lookup for the non-casefolded names - these need invalidating on unlink. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
9cdde3c7aa
commit
7cb85324c4
|
|
@ -847,6 +847,11 @@ int __bch2_unlink(struct inode *vdir, struct dentry *dentry,
|
|||
*/
|
||||
set_nlink(&inode->v, 0);
|
||||
}
|
||||
|
||||
if (IS_CASEFOLDED(vdir)) {
|
||||
d_invalidate(dentry);
|
||||
d_prune_aliases(&inode->v);
|
||||
}
|
||||
err:
|
||||
bch2_trans_put(trans);
|
||||
bch2_unlock_inodes(INODE_UPDATE_LOCK, dir, inode);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user