diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-22 20:15:33 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2022-12-20 20:01:27 -0500 |
commit | 113119721d67febf0d7e54bc4fbc8d980d6d0a71 (patch) | |
tree | 56cd2fc36271c5e1a1b9135c2f1e113521715452 /fs/bcachefs/inode.c | |
parent | 3dd0197b94d6752eb830448cf8bb485962324161 (diff) |
bcachefs: Key cache now works for snapshots btrees
This switches btree_key_cache_fill() to use a btree iterator, not a
btree path, so that it can search for keys in previous snapshots.
We also add another iterator flag, BTREE_ITER_KEY_CACHE_FILL, to avoid
recursion back into the key cache.
This will allow us to re-enable the key cache for inodes in the next
patch.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/inode.c')
-rw-r--r-- | fs/bcachefs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c index 0ad47cff72cc..8860301e4af3 100644 --- a/fs/bcachefs/inode.c +++ b/fs/bcachefs/inode.c @@ -823,8 +823,8 @@ retry: if (!bkey_is_inode(k.k)) { bch2_fs_inconsistent(trans.c, - "inode %llu not found when deleting", - inum.inum); + "inode %llu:%u not found when deleting", + inum.inum, snapshot); ret = -EIO; goto err; } |