summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-04-17 20:10:43 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-06-10 14:08:03 -0400
commitdf3217d7447564e3276792bf6df38a6e558209ba (patch)
treeca5a17393c94849e4db9a6e75120b43bd8d3dddc
parent6968fae8dab70677928f308dbef5f153ecc46737 (diff)
bcachefs: copy correct journal_seq to dir in create
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--fs/bcachefs/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c
index 2af8b7d068e9..cce1616559a3 100644
--- a/fs/bcachefs/fs.c
+++ b/fs/bcachefs/fs.c
@@ -396,7 +396,7 @@ retry:
if (!tmpfile) {
bch2_inode_update_after_write(c, dir, &dir_u,
ATTR_MTIME|ATTR_CTIME);
- journal_seq_copy(dir, inode->ei_journal_seq);
+ journal_seq_copy(dir, journal_seq);
mutex_unlock(&dir->ei_update_lock);
}