summaryrefslogtreecommitdiff
path: root/fs/bcachefs/lru.h
blob: 4db6a8399332d3c3181255f8c5086bb8f4a61230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _BCACHEFS_LRU_H
#define _BCACHEFS_LRU_H

const char *bch2_lru_invalid(const struct bch_fs *, struct bkey_s_c);
void bch2_lru_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);

#define bch2_bkey_ops_lru (struct bkey_ops) {	\
	.key_invalid	= bch2_lru_invalid,	\
	.val_to_text	= bch2_lru_to_text,	\
}

int bch2_lru_change(struct btree_trans *, u64, u64, u64, u64 *);

int bch2_check_lrus(struct bch_fs *, bool);

#endif /* _BCACHEFS_LRU_H */