diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-10-06 14:41:18 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-10-18 16:08:07 -0400 |
commit | 1a1a3e97bad42e92cd2f32e81c396c8ee0bddb28 (patch) | |
tree | 6c8291164698decff609dfda60285a7d94c0a832 /fs/xfs/linux-2.6/xfs_buf.h | |
parent | 6c77b0ea1bdf85dfd48c20ceb10fd215a95c66e2 (diff) |
xfs: remove xfs_buf wrappers
Stop having two different names for many buffer functions and use
the more descriptive xfs_buf_* names directly.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-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 | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h index 161333785f69..131c0ebf2c0d 100644 --- a/fs/xfs/linux-2.6/xfs_buf.h +++ b/fs/xfs/linux-2.6/xfs_buf.h | |||
@@ -218,8 +218,7 @@ extern xfs_buf_t *xfs_buf_get_empty(size_t, xfs_buftarg_t *); | |||
218 | extern xfs_buf_t *xfs_buf_get_uncached(struct xfs_buftarg *, size_t, int); | 218 | extern xfs_buf_t *xfs_buf_get_uncached(struct xfs_buftarg *, size_t, int); |
219 | extern int xfs_buf_associate_memory(xfs_buf_t *, void *, size_t); | 219 | extern int xfs_buf_associate_memory(xfs_buf_t *, void *, size_t); |
220 | extern void xfs_buf_hold(xfs_buf_t *); | 220 | extern void xfs_buf_hold(xfs_buf_t *); |
221 | extern void xfs_buf_readahead(xfs_buftarg_t *, xfs_off_t, size_t, | 221 | extern void xfs_buf_readahead(xfs_buftarg_t *, xfs_off_t, size_t); |
222 | xfs_buf_flags_t); | ||
223 | struct xfs_buf *xfs_buf_read_uncached(struct xfs_mount *mp, | 222 | struct xfs_buf *xfs_buf_read_uncached(struct xfs_mount *mp, |
224 | struct xfs_buftarg *target, | 223 | struct xfs_buftarg *target, |
225 | xfs_daddr_t daddr, size_t length, int flags); | 224 | xfs_daddr_t daddr, size_t length, int flags); |
@@ -247,6 +246,8 @@ extern int xfs_buf_iorequest(xfs_buf_t *); | |||
247 | extern int xfs_buf_iowait(xfs_buf_t *); | 246 | extern int xfs_buf_iowait(xfs_buf_t *); |
248 | extern void xfs_buf_iomove(xfs_buf_t *, size_t, size_t, void *, | 247 | extern void xfs_buf_iomove(xfs_buf_t *, size_t, size_t, void *, |
249 | xfs_buf_rw_t); | 248 | xfs_buf_rw_t); |
249 | #define xfs_buf_zero(bp, off, len) \ | ||
250 | xfs_buf_iomove((bp), (off), (len), NULL, XBRW_ZERO) | ||
250 | 251 | ||
251 | static inline int xfs_buf_geterror(xfs_buf_t *bp) | 252 | static inline int xfs_buf_geterror(xfs_buf_t *bp) |
252 | { | 253 | { |
@@ -359,21 +360,6 @@ static inline void xfs_buf_relse(xfs_buf_t *bp) | |||
359 | xfs_buf_rele(bp); | 360 | xfs_buf_rele(bp); |
360 | } | 361 | } |
361 | 362 | ||
362 | #define xfs_biodone(bp) xfs_buf_ioend(bp, 0) | ||
363 | |||
364 | #define xfs_biomove(bp, off, len, data, rw) \ | ||
365 | xfs_buf_iomove((bp), (off), (len), (data), \ | ||
366 | ((rw) == XBF_WRITE) ? XBRW_WRITE : XBRW_READ) | ||
367 | |||
368 | #define xfs_biozero(bp, off, len) \ | ||
369 | xfs_buf_iomove((bp), (off), (len), NULL, XBRW_ZERO) | ||
370 | |||
371 | #define xfs_iowait(bp) xfs_buf_iowait(bp) | ||
372 | |||
373 | #define xfs_baread(target, rablkno, ralen) \ | ||
374 | xfs_buf_readahead((target), (rablkno), (ralen), XBF_DONT_BLOCK) | ||
375 | |||
376 | |||
377 | /* | 363 | /* |
378 | * Handling of buftargs. | 364 | * Handling of buftargs. |
379 | */ | 365 | */ |