Skip to content

Commit 6e4d9bd

Browse files
author
Kent Overstreet
committed
bcachefs: bkey_cached.btree_trans_barrier_seq needs to be a ulong
this stores the SRCU sequence number, which we use to check if an SRCU barrier has elapsed; this is a partial fix for the key cache shrinker not actually freeing. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent ec438ac commit 6e4d9bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/bcachefs/btree_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ struct bkey_cached {
321321
struct btree_bkey_cached_common c;
322322

323323
unsigned long flags;
324+
unsigned long btree_trans_barrier_seq;
324325
u16 u64s;
325326
bool valid;
326-
u32 btree_trans_barrier_seq;
327327
struct bkey_cached_key key;
328328

329329
struct rhash_head hash;

0 commit comments

Comments
 (0)