bcachefs: fix rename + fsync
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 22 Jul 2018 17:15:51 +0000 (13:15 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:07 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c

index a4d8225..cd29404 100644 (file)
@@ -849,6 +849,10 @@ retry:
                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)