bcache.h (53f071e19d566e7d0a4eada1bd8313a4cdb660a4) | bcache.h (6e916a7eb1bc045f4e27355632ee7692014e6e60) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _BCACHE_H 3#define _BCACHE_H 4 5/* 6 * SOME HIGH LEVEL CODE DOCUMENTATION: 7 * 8 * Bcache mostly works with cache sets, cache devices, and backing devices. --- 378 unchanged lines hidden (view full) --- 387 unsigned writeback_rate_i_term_inverse; 388 unsigned writeback_rate_p_term_inverse; 389 unsigned writeback_rate_minimum; 390 391 enum stop_on_failure stop_when_cache_set_failed; 392#define DEFAULT_CACHED_DEV_ERROR_LIMIT 64 393 atomic_t io_errors; 394 unsigned error_limit; | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _BCACHE_H 3#define _BCACHE_H 4 5/* 6 * SOME HIGH LEVEL CODE DOCUMENTATION: 7 * 8 * Bcache mostly works with cache sets, cache devices, and backing devices. --- 378 unchanged lines hidden (view full) --- 387 unsigned writeback_rate_i_term_inverse; 388 unsigned writeback_rate_p_term_inverse; 389 unsigned writeback_rate_minimum; 390 391 enum stop_on_failure stop_when_cache_set_failed; 392#define DEFAULT_CACHED_DEV_ERROR_LIMIT 64 393 atomic_t io_errors; 394 unsigned error_limit; |
395 396 char backing_dev_name[BDEVNAME_SIZE]; |
|
395}; 396 397enum alloc_reserve { 398 RESERVE_BTREE, 399 RESERVE_PRIO, 400 RESERVE_MOVINGGC, 401 RESERVE_NONE, 402 RESERVE_NR, --- 56 unchanged lines hidden (view full) --- 459 /* The rest of this all shows up in sysfs */ 460#define IO_ERROR_SHIFT 20 461 atomic_t io_errors; 462 atomic_t io_count; 463 464 atomic_long_t meta_sectors_written; 465 atomic_long_t btree_sectors_written; 466 atomic_long_t sectors_written; | 397}; 398 399enum alloc_reserve { 400 RESERVE_BTREE, 401 RESERVE_PRIO, 402 RESERVE_MOVINGGC, 403 RESERVE_NONE, 404 RESERVE_NR, --- 56 unchanged lines hidden (view full) --- 461 /* The rest of this all shows up in sysfs */ 462#define IO_ERROR_SHIFT 20 463 atomic_t io_errors; 464 atomic_t io_count; 465 466 atomic_long_t meta_sectors_written; 467 atomic_long_t btree_sectors_written; 468 atomic_long_t sectors_written; |
469 470 char cache_dev_name[BDEVNAME_SIZE]; |
|
467}; 468 469struct gc_stat { 470 size_t nodes; 471 size_t key_bytes; 472 473 size_t nkeys; 474 uint64_t data; /* sectors */ --- 524 unchanged lines hidden --- | 471}; 472 473struct gc_stat { 474 size_t nodes; 475 size_t key_bytes; 476 477 size_t nkeys; 478 uint64_t data; /* sectors */ --- 524 unchanged lines hidden --- |