Commit 69eb5390 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: copy correct journal_seq to dir in create

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 94f651e2
...@@ -454,7 +454,7 @@ __bch2_create(struct mnt_idmap *idmap, ...@@ -454,7 +454,7 @@ __bch2_create(struct mnt_idmap *idmap,
if (!tmpfile) { if (!tmpfile) {
bch2_inode_update_after_write(c, dir, &dir_u, bch2_inode_update_after_write(c, dir, &dir_u,
ATTR_MTIME|ATTR_CTIME); ATTR_MTIME|ATTR_CTIME);
journal_seq_copy(dir, inode->ei_journal_seq); journal_seq_copy(dir, journal_seq);
mutex_unlock(&dir->ei_update_lock); mutex_unlock(&dir->ei_update_lock);
} }
......
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