diff options
Diffstat (limited to 'fs/bcachefs/inode.c')
-rw-r--r-- | fs/bcachefs/inode.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c index 8e52d475b397..f00778d78271 100644 --- a/fs/bcachefs/inode.c +++ b/fs/bcachefs/inode.c @@ -576,16 +576,9 @@ retry: bi_generation = 0; - ret = bch2_btree_key_cache_flush(&trans, BTREE_ID_INODES, POS(0, inode_nr)); - if (ret) { - if (ret != -EINTR) - bch_err(c, "error flushing btree key cache: %i", ret); - goto err; - } - iter = bch2_trans_get_iter(&trans, BTREE_ID_INODES, POS(0, inode_nr), - BTREE_ITER_SLOTS|BTREE_ITER_INTENT); - k = bch2_btree_iter_peek_slot(iter); + BTREE_ITER_CACHED|BTREE_ITER_INTENT); + k = bch2_btree_iter_peek_cached(iter); ret = bkey_err(k); if (ret) |