Searched refs:lru_id (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | lru.c | 43 static int __bch2_lru_set(struct btree_trans *trans, u16 lru_id, in __bch2_lru_set() argument 48 lru_pos(lru_id, dev_bucket, time), set) in __bch2_lru_set() 52 int bch2_lru_del(struct btree_trans *trans, u16 lru_id, u64 dev_bucket, u64 time) in bch2_lru_del() argument 54 return __bch2_lru_set(trans, lru_id, dev_bucket, time, KEY_TYPE_deleted); in bch2_lru_del() 57 int bch2_lru_set(struct btree_trans *trans, u16 lru_id, u64 dev_bucket, u64 time) in bch2_lru_set() argument 59 return __bch2_lru_set(trans, lru_id, dev_bucket, time, KEY_TYPE_set); in bch2_lru_set() 63 u16 lru_id, u64 dev_bucket, in bch2_lru_change() argument 69 return bch2_lru_del(trans, lru_id, dev_bucket, old_time) ?: in bch2_lru_change() 70 bch2_lru_set(trans, lru_id, dev_bucket, new_time); in bch2_lru_change() 81 u16 lru_id, u64 time, in bch2_lru_check_set() argument [all …]
|
D | lru.h | 15 static inline struct bpos lru_pos(u16 lru_id, u64 dev_bucket, u64 time) in lru_pos() argument 17 struct bpos pos = POS(((u64) lru_id << LRU_TIME_BITS)|time, dev_bucket); in lru_pos() 20 EBUG_ON(lru_pos_id(pos) != lru_id); in lru_pos() 29 u16 lru_id = l.k->p.inode >> 48; in lru_type() local 31 if (lru_id == BCH_LRU_FRAGMENTATION_START) in lru_type()
|