diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-09-24 07:58:31 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-10-18 16:07:47 -0400 |
commit | 5adc94c247c3779782c7b0b8b5e28cf50596eb37 (patch) | |
tree | 95c2fac56cf6b9559b70aeaa43dae5a18b3c3fec /fs/xfs/linux-2.6/xfs_buf.h | |
parent | 686865f76e35b28ba7aa6afa19209426f0da6201 (diff) |
xfs: introduced uncached buffer read primitve
To avoid the need to use cached buffers for single-shot or buffers
cached at the filesystem level, introduce a new buffer read
primitive that bypasses the cache an reads directly from disk.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_buf.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h index fb30447091d8..57eedc750ee6 100644 --- a/fs/xfs/linux-2.6/xfs_buf.h +++ b/fs/xfs/linux-2.6/xfs_buf.h | |||
@@ -218,6 +218,9 @@ extern int xfs_buf_associate_memory(xfs_buf_t *, void *, size_t); | |||
218 | extern void xfs_buf_hold(xfs_buf_t *); | 218 | extern void xfs_buf_hold(xfs_buf_t *); |
219 | extern void xfs_buf_readahead(xfs_buftarg_t *, xfs_off_t, size_t, | 219 | extern void xfs_buf_readahead(xfs_buftarg_t *, xfs_off_t, size_t, |
220 | xfs_buf_flags_t); | 220 | xfs_buf_flags_t); |
221 | struct xfs_buf *xfs_buf_read_uncached(struct xfs_mount *mp, | ||
222 | struct xfs_buftarg *target, | ||
223 | xfs_daddr_t daddr, size_t length, int flags); | ||
221 | 224 | ||
222 | /* Releasing Buffers */ | 225 | /* Releasing Buffers */ |
223 | extern void xfs_buf_free(xfs_buf_t *); | 226 | extern void xfs_buf_free(xfs_buf_t *); |