From: Kent Overstreet Date: Sun, 22 Jul 2018 17:15:51 +0000 (-0400) Subject: bcachefs: fix rename + fsync X-Git-Tag: io_uring-6.7-2023-11-10~119^2~2753 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d96b3ffe3884d8402ca64d1a1ae880460339ec63;p=linux-block.git bcachefs: fix rename + fsync Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index a4d82252bc49..cd29404e0b9b 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -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)