bcachefs.h (dbd0408087853c7842aa21f58f99d395eff02544) | bcachefs.h (3858aa4268b2f71827097f548879e4405b4cc995) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _BCACHEFS_H 3#define _BCACHEFS_H 4 5/* 6 * SOME HIGH LEVEL CODE DOCUMENTATION: 7 * 8 * Bcache mostly works with cache sets, cache devices, and backing devices. --- 559 unchanged lines hidden (view full) --- 568 atomic_t flush_seq; 569 570 struct bch_devs_mask self; 571 572 /* 573 * Buckets: 574 * Per-bucket arrays are protected by c->mark_lock, bucket_lock and 575 * gc_lock, for device resize - holding any is sufficient for access: | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _BCACHEFS_H 3#define _BCACHEFS_H 4 5/* 6 * SOME HIGH LEVEL CODE DOCUMENTATION: 7 * 8 * Bcache mostly works with cache sets, cache devices, and backing devices. --- 559 unchanged lines hidden (view full) --- 568 atomic_t flush_seq; 569 570 struct bch_devs_mask self; 571 572 /* 573 * Buckets: 574 * Per-bucket arrays are protected by c->mark_lock, bucket_lock and 575 * gc_lock, for device resize - holding any is sufficient for access: |
576 * Or rcu_read_lock(), but only for ptr_stale(): | 576 * Or rcu_read_lock(), but only for dev_ptr_stale(): |
577 */ 578 struct bucket_array __rcu *buckets_gc; 579 struct bucket_gens __rcu *bucket_gens; 580 u8 *oldest_gen; 581 unsigned long *buckets_nouse; 582 struct rw_semaphore bucket_lock; 583 584 struct bch_dev_usage *usage_base; --- 697 unchanged lines hidden --- | 577 */ 578 struct bucket_array __rcu *buckets_gc; 579 struct bucket_gens __rcu *bucket_gens; 580 u8 *oldest_gen; 581 unsigned long *buckets_nouse; 582 struct rw_semaphore bucket_lock; 583 584 struct bch_dev_usage *usage_base; --- 697 unchanged lines hidden --- |