mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
bcachefs: fix rename + fsync
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
19ee5f2ac4
commit
d96b3ffe38
1 changed files with 4 additions and 0 deletions
|
@ -849,6 +849,10 @@ static int bch2_rename2(struct mnt_idmap *idmap,
|
|||
journal_seq_copy(i.dst_dir, journal_seq);
|
||||
}
|
||||
|
||||
journal_seq_copy(i.src_inode, journal_seq);
|
||||
if (i.dst_inode)
|
||||
journal_seq_copy(i.dst_inode, journal_seq);
|
||||
|
||||
bch2_inode_update_after_write(c, i.src_inode, &src_inode_u,
|
||||
ATTR_CTIME);
|
||||
if (i.dst_inode)
|
||||
|
|
Loading…
Reference in a new issue