projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04ee86
)
bcachefs: Set bch_inode_unpacked.bi_snapshot in old inode path
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 20 Oct 2024 22:00:13 +0000
(18:00 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 20 Oct 2024 22:09:09 +0000
(18:09 -0400)
This fixes a fsck bug on a very old filesystem (pre mainline merge).
Fixes:
72350ee0ea22
("bcachefs: Kill snapshot arg to fsck_write_inode()")
Reported-by: Marcin Mirosław <marcin@mejor.pl>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/inode.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/inode.c
b/fs/bcachefs/inode.c
index
b9fde15
..
6b7143e
100644
(file)
--- a/
fs/bcachefs/inode.c
+++ b/
fs/bcachefs/inode.c
@@
-283,6
+283,8
@@
static noinline int bch2_inode_unpack_slowpath(struct bkey_s_c k,
{
memset(unpacked, 0, sizeof(*unpacked));
+ unpacked->bi_snapshot = k.k->p.snapshot;
+
switch (k.k->type) {
case KEY_TYPE_inode: {
struct bkey_s_c_inode inode = bkey_s_c_to_inode(k);