lru.c (83f33d686553c5105ff36da4dd554c34125094e9) | lru.c (facafdcbc157686311dbe58649ef9d29fcf8e610) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3#include "bcachefs.h" 4#include "alloc_background.h" 5#include "btree_iter.h" 6#include "btree_update.h" 7#include "error.h" 8#include "lru.h" 9#include "recovery.h" 10 11/* KEY_TYPE_lru is obsolete: */ 12int bch2_lru_invalid(const struct bch_fs *c, struct bkey_s_c k, | 1// SPDX-License-Identifier: GPL-2.0 2 3#include "bcachefs.h" 4#include "alloc_background.h" 5#include "btree_iter.h" 6#include "btree_update.h" 7#include "error.h" 8#include "lru.h" 9#include "recovery.h" 10 11/* KEY_TYPE_lru is obsolete: */ 12int bch2_lru_invalid(const struct bch_fs *c, struct bkey_s_c k, |
13 int rw, struct printbuf *err) | 13 unsigned flags, struct printbuf *err) |
14{ 15 const struct bch_lru *lru = bkey_s_c_to_lru(k).v; 16 17 if (bkey_val_bytes(k.k) < sizeof(*lru)) { 18 prt_printf(err, "incorrect value size (%zu < %zu)", 19 bkey_val_bytes(k.k), sizeof(*lru)); 20 return -BCH_ERR_invalid_bkey; 21 } --- 136 unchanged lines hidden --- | 14{ 15 const struct bch_lru *lru = bkey_s_c_to_lru(k).v; 16 17 if (bkey_val_bytes(k.k) < sizeof(*lru)) { 18 prt_printf(err, "incorrect value size (%zu < %zu)", 19 bkey_val_bytes(k.k), sizeof(*lru)); 20 return -BCH_ERR_invalid_bkey; 21 } --- 136 unchanged lines hidden --- |