Commit d96b3ffe authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: fix rename + fsync

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 19ee5f2a
...@@ -849,6 +849,10 @@ static int bch2_rename2(struct mnt_idmap *idmap, ...@@ -849,6 +849,10 @@ static int bch2_rename2(struct mnt_idmap *idmap,
journal_seq_copy(i.dst_dir, journal_seq); 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, bch2_inode_update_after_write(c, i.src_inode, &src_inode_u,
ATTR_CTIME); ATTR_CTIME);
if (i.dst_inode) if (i.dst_inode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment