Lines Matching +full:- +full:- +full:retry +full:- +full:all +full:- +full:errors
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
25 #define XFS_BUF_DADDR_NULL ((xfs_daddr_t) (-1LL))
29 #define XBF_READ_AHEAD (1u << 2) /* asynchronous read-ahead */
31 #define XBF_DONE (1u << 5) /* all pages in the buffer uptodate */
83 * The xfs_buftarg contains 2 notions of "sector size" -
89 * The first is specified at mkfs time, and is stored on-disk in the
119 /* built-in cache, if we're not using the perag one */
151 * first cacheline holds all the fields needed for an uncontended cache
155 * fast-path on locking.
192 * async write failure retry count. Initialised to zero on the first
197 * For retry timeouts, we record the jiffy of the first failure. This
198 * means that we can change the retry timeout for buffers already under
199 * I/O and thus avoid getting stuck in a retry loop with a long timeout.
201 * last_error is used to ensure that we are getting repeated errors, not
202 * different errors. e.g. a block device might change ENOSPC to EIO when
203 * a failure timeout occurs, so we want to re-initialise the error
204 * retry behaviour appropriately when that happens.
291 ((bp)->b_sema.count <= 0)
313 return bp->b_addr + offset; in xfs_buf_offset()
318 memset(bp->b_addr + boff, 0, bsize); in xfs_buf_zero()
333 return bp->b_maps[0].bm_bn; in xfs_buf_daddr()
345 if (!list_empty(&bp->b_lru) || atomic_read(&bp->b_lru_ref) > 1) in xfs_buf_oneshot()
347 atomic_set(&bp->b_lru_ref, 0); in xfs_buf_oneshot()
352 return atomic_read(&bp->b_pin_count); in xfs_buf_ispinned()
358 return xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length), in xfs_buf_verify_cksum()
365 xfs_update_cksum(bp->b_addr, BBTOB(bp->b_length), in xfs_buf_update_cksum()
379 #define xfs_getsize_buftarg(buftarg) block_size((buftarg)->bt_bdev)
380 #define xfs_readonly_buftarg(buftarg) bdev_read_only((buftarg)->bt_bdev)