bcachefs: copy correct journal_seq to dir in create

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2019-04-17 20:10:43 -04:00
committed by Kent Overstreet
parent 94f651e2c7
commit 69eb5390af

View File

@@ -454,7 +454,7 @@ __bch2_create(struct mnt_idmap *idmap,
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);
}