From: Kent Overstreet Date: Thu, 18 Apr 2019 00:10:43 +0000 (-0400) Subject: bcachefs: copy correct journal_seq to dir in create X-Git-Tag: v6.7-rc1~201^2~2477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69eb5390afd287e73f781c26526796b45a77f9d1;p=thirdparty%2Fkernel%2Fstable.git bcachefs: copy correct journal_seq to dir in create Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index ba4b4e942f0cd..7ae1b7520351a 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -454,7 +454,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); }