bcache.h (754451342fc5954061ede74b0a8485ec4a4c6eaa) bcache.h (0f0709e6bfc3ce4e8e1c0e8573490c45f76cfeee)
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.

--- 331 unchanged lines hidden (view full) ---

340
341 /* Limit number of writeback bios in flight */
342 struct semaphore in_flight;
343 struct task_struct *writeback_thread;
344 struct workqueue_struct *writeback_write_wq;
345
346 struct keybuf writeback_keys;
347
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.

--- 331 unchanged lines hidden (view full) ---

340
341 /* Limit number of writeback bios in flight */
342 struct semaphore in_flight;
343 struct task_struct *writeback_thread;
344 struct workqueue_struct *writeback_write_wq;
345
346 struct keybuf writeback_keys;
347
348 struct task_struct *status_update_thread;
348 /*
349 * Order the write-half of writeback operations strongly in dispatch
350 * order. (Maintain LBA order; don't allow reads completing out of
351 * order to re-order the writes...)
352 */
353 struct closure_waitlist writeback_ordering_wait;
354 atomic_t writeback_sequence_next;
355

--- 31 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;
349 /*
350 * Order the write-half of writeback operations strongly in dispatch
351 * order. (Maintain LBA order; don't allow reads completing out of
352 * order to re-order the writes...)
353 */
354 struct closure_waitlist writeback_ordering_wait;
355 atomic_t writeback_sequence_next;
356

--- 31 unchanged lines hidden (view full) ---

388 unsigned writeback_rate_i_term_inverse;
389 unsigned writeback_rate_p_term_inverse;
390 unsigned writeback_rate_minimum;
391
392 enum stop_on_failure stop_when_cache_set_failed;
393#define DEFAULT_CACHED_DEV_ERROR_LIMIT 64
394 atomic_t io_errors;
395 unsigned error_limit;
396 unsigned offline_seconds;
395
396 char backing_dev_name[BDEVNAME_SIZE];
397};
398
399enum alloc_reserve {
400 RESERVE_BTREE,
401 RESERVE_PRIO,
402 RESERVE_MOVINGGC,

--- 600 unchanged lines hidden ---
397
398 char backing_dev_name[BDEVNAME_SIZE];
399};
400
401enum alloc_reserve {
402 RESERVE_BTREE,
403 RESERVE_PRIO,
404 RESERVE_MOVINGGC,

--- 600 unchanged lines hidden ---