diff options
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.h | 22 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_fs_subr.c | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_sync.c | 4 |
4 files changed, 8 insertions, 22 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index efd745bb8887..730eff1e71a3 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
@@ -1169,7 +1169,7 @@ xfs_bioerror_relse( | |||
1169 | XFS_BUF_STALE(bp); | 1169 | XFS_BUF_STALE(bp); |
1170 | XFS_BUF_CLR_IODONE_FUNC(bp); | 1170 | XFS_BUF_CLR_IODONE_FUNC(bp); |
1171 | XFS_BUF_CLR_BDSTRAT_FUNC(bp); | 1171 | XFS_BUF_CLR_BDSTRAT_FUNC(bp); |
1172 | if (!(fl & XFS_B_ASYNC)) { | 1172 | if (!(fl & XBF_ASYNC)) { |
1173 | /* | 1173 | /* |
1174 | * Mark b_error and B_ERROR _both_. | 1174 | * Mark b_error and B_ERROR _both_. |
1175 | * Lot's of chunkcache code assumes that. | 1175 | * Lot's of chunkcache code assumes that. |
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h index 4f2ad66edb76..ea8c198f0c39 100644 --- a/fs/xfs/linux-2.6/xfs_buf.h +++ b/fs/xfs/linux-2.6/xfs_buf.h | |||
@@ -275,33 +275,19 @@ extern void xfs_buf_terminate(void); | |||
275 | ({ char __b[BDEVNAME_SIZE]; bdevname((target)->bt_bdev, __b); __b; }) | 275 | ({ char __b[BDEVNAME_SIZE]; bdevname((target)->bt_bdev, __b); __b; }) |
276 | 276 | ||
277 | 277 | ||
278 | #define XFS_B_ASYNC XBF_ASYNC | ||
279 | #define XFS_B_DELWRI XBF_DELWRI | ||
280 | #define XFS_B_READ XBF_READ | ||
281 | #define XFS_B_WRITE XBF_WRITE | ||
282 | #define XFS_B_STALE XBF_STALE | ||
283 | |||
284 | #define XFS_BUF_TRYLOCK XBF_TRYLOCK | ||
285 | #define XFS_INCORE_TRYLOCK XBF_TRYLOCK | ||
286 | #define XFS_BUF_LOCK XBF_LOCK | ||
287 | #define XFS_BUF_MAPPED XBF_MAPPED | ||
288 | |||
289 | #define BUF_BUSY XBF_DONT_BLOCK | ||
290 | |||
291 | #define XFS_BUF_BFLAGS(bp) ((bp)->b_flags) | 278 | #define XFS_BUF_BFLAGS(bp) ((bp)->b_flags) |
292 | #define XFS_BUF_ZEROFLAGS(bp) ((bp)->b_flags &= \ | 279 | #define XFS_BUF_ZEROFLAGS(bp) ((bp)->b_flags &= \ |
293 | ~(XBF_READ|XBF_WRITE|XBF_ASYNC|XBF_DELWRI|XBF_ORDERED)) | 280 | ~(XBF_READ|XBF_WRITE|XBF_ASYNC|XBF_DELWRI|XBF_ORDERED)) |
294 | 281 | ||
295 | #define XFS_BUF_STALE(bp) ((bp)->b_flags |= XFS_B_STALE) | 282 | #define XFS_BUF_STALE(bp) ((bp)->b_flags |= XBF_STALE) |
296 | #define XFS_BUF_UNSTALE(bp) ((bp)->b_flags &= ~XFS_B_STALE) | 283 | #define XFS_BUF_UNSTALE(bp) ((bp)->b_flags &= ~XBF_STALE) |
297 | #define XFS_BUF_ISSTALE(bp) ((bp)->b_flags & XFS_B_STALE) | 284 | #define XFS_BUF_ISSTALE(bp) ((bp)->b_flags & XBF_STALE) |
298 | #define XFS_BUF_SUPER_STALE(bp) do { \ | 285 | #define XFS_BUF_SUPER_STALE(bp) do { \ |
299 | XFS_BUF_STALE(bp); \ | 286 | XFS_BUF_STALE(bp); \ |
300 | xfs_buf_delwri_dequeue(bp); \ | 287 | xfs_buf_delwri_dequeue(bp); \ |
301 | XFS_BUF_DONE(bp); \ | 288 | XFS_BUF_DONE(bp); \ |
302 | } while (0) | 289 | } while (0) |
303 | 290 | ||
304 | #define XFS_BUF_MANAGE XBF_FS_MANAGED | ||
305 | #define XFS_BUF_UNMANAGE(bp) ((bp)->b_flags &= ~XBF_FS_MANAGED) | 291 | #define XFS_BUF_UNMANAGE(bp) ((bp)->b_flags &= ~XBF_FS_MANAGED) |
306 | 292 | ||
307 | #define XFS_BUF_DELAYWRITE(bp) ((bp)->b_flags |= XBF_DELWRI) | 293 | #define XFS_BUF_DELAYWRITE(bp) ((bp)->b_flags |= XBF_DELWRI) |
@@ -390,7 +376,7 @@ static inline void xfs_buf_relse(xfs_buf_t *bp) | |||
390 | 376 | ||
391 | #define xfs_biomove(bp, off, len, data, rw) \ | 377 | #define xfs_biomove(bp, off, len, data, rw) \ |
392 | xfs_buf_iomove((bp), (off), (len), (data), \ | 378 | xfs_buf_iomove((bp), (off), (len), (data), \ |
393 | ((rw) == XFS_B_WRITE) ? XBRW_WRITE : XBRW_READ) | 379 | ((rw) == XBF_WRITE) ? XBRW_WRITE : XBRW_READ) |
394 | 380 | ||
395 | #define xfs_biozero(bp, off, len) \ | 381 | #define xfs_biozero(bp, off, len) \ |
396 | xfs_buf_iomove((bp), (off), (len), NULL, XBRW_ZERO) | 382 | xfs_buf_iomove((bp), (off), (len), NULL, XBRW_ZERO) |
diff --git a/fs/xfs/linux-2.6/xfs_fs_subr.c b/fs/xfs/linux-2.6/xfs_fs_subr.c index 7501b85fd860..b6918d76bc7b 100644 --- a/fs/xfs/linux-2.6/xfs_fs_subr.c +++ b/fs/xfs/linux-2.6/xfs_fs_subr.c | |||
@@ -79,7 +79,7 @@ xfs_flush_pages( | |||
79 | xfs_iflags_clear(ip, XFS_ITRUNCATED); | 79 | xfs_iflags_clear(ip, XFS_ITRUNCATED); |
80 | ret = -filemap_fdatawrite(mapping); | 80 | ret = -filemap_fdatawrite(mapping); |
81 | } | 81 | } |
82 | if (flags & XFS_B_ASYNC) | 82 | if (flags & XBF_ASYNC) |
83 | return ret; | 83 | return ret; |
84 | ret2 = xfs_wait_on_pages(ip, first, last); | 84 | ret2 = xfs_wait_on_pages(ip, first, last); |
85 | if (!ret) | 85 | if (!ret) |
diff --git a/fs/xfs/linux-2.6/xfs_sync.c b/fs/xfs/linux-2.6/xfs_sync.c index b58f8412dfe2..58c24be72c65 100644 --- a/fs/xfs/linux-2.6/xfs_sync.c +++ b/fs/xfs/linux-2.6/xfs_sync.c | |||
@@ -234,7 +234,7 @@ xfs_sync_inode_data( | |||
234 | } | 234 | } |
235 | 235 | ||
236 | error = xfs_flush_pages(ip, 0, -1, (flags & SYNC_WAIT) ? | 236 | error = xfs_flush_pages(ip, 0, -1, (flags & SYNC_WAIT) ? |
237 | 0 : XFS_B_ASYNC, FI_NONE); | 237 | 0 : XBF_ASYNC, FI_NONE); |
238 | xfs_iunlock(ip, XFS_IOLOCK_SHARED); | 238 | xfs_iunlock(ip, XFS_IOLOCK_SHARED); |
239 | 239 | ||
240 | out_wait: | 240 | out_wait: |
@@ -370,7 +370,7 @@ xfs_sync_fsdata( | |||
370 | if (flags & SYNC_TRYLOCK) { | 370 | if (flags & SYNC_TRYLOCK) { |
371 | ASSERT(!(flags & SYNC_WAIT)); | 371 | ASSERT(!(flags & SYNC_WAIT)); |
372 | 372 | ||
373 | bp = xfs_getsb(mp, XFS_BUF_TRYLOCK); | 373 | bp = xfs_getsb(mp, XBF_TRYLOCK); |
374 | if (!bp) | 374 | if (!bp) |
375 | goto out; | 375 | goto out; |
376 | 376 | ||