• Home
  • Raw
  • Download

Lines Matching +full:compound +full:- +full:device

1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
23 #define XFS_BUF_DADDR_NULL ((xfs_daddr_t) (-1LL))
25 #define XBF_READ (1 << 0) /* buffer intended for reading from device */
26 #define XBF_WRITE (1 << 1) /* buffer intended for writing to device */
27 #define XBF_READ_AHEAD (1 << 2) /* asynchronous read-ahead */
28 #define XBF_NO_IOACCT (1 << 3) /* bypass I/O accounting (non-LRU bufs) */
76 * The xfs_buftarg contains 2 notions of "sector size" -
80 * 2) The device logical sector size
82 * The first is specified at mkfs time, and is stored on-disk in the
85 * The latter is derived from the underlying device, and controls direct IO
133 * fast-path on locking.
155 xfs_buftarg_t *b_target; /* buffer target (device) */
164 struct xfs_buf_map *b_maps; /* compound buffer map */
165 struct xfs_buf_map __b_map; /* inline compound buffer map */
184 * different errors. e.g. a block device might change ENOSPC to EIO when
185 * a failure timeout occurs, so we want to re-initialise the error
263 ((bp)->b_sema.count <= 0)
308 #define XFS_BUF_ADDR(bp) ((bp)->b_maps[0].bm_bn)
309 #define XFS_BUF_SET_ADDR(bp, bno) ((bp)->b_maps[0].bm_bn = (xfs_daddr_t)(bno))
320 if (!list_empty(&bp->b_lru) || atomic_read(&bp->b_lru_ref) > 1) in xfs_buf_oneshot()
322 atomic_set(&bp->b_lru_ref, 0); in xfs_buf_oneshot()
327 return atomic_read(&bp->b_pin_count); in xfs_buf_ispinned()
333 return xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length), in xfs_buf_verify_cksum()
340 xfs_update_cksum(bp->b_addr, BBTOB(bp->b_length), in xfs_buf_update_cksum()
353 #define xfs_getsize_buftarg(buftarg) block_size((buftarg)->bt_bdev)
354 #define xfs_readonly_buftarg(buftarg) bdev_read_only((buftarg)->bt_bdev)
359 return queue_dma_alignment(bt->bt_bdev->bd_disk->queue); in xfs_buftarg_dma_alignment()