diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 5f152f60d74d..6f4c29e9c3d9 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c | |||
@@ -323,17 +323,13 @@ xfs_iomap_valid( | |||
323 | /* | 323 | /* |
324 | * BIO completion handler for buffered IO. | 324 | * BIO completion handler for buffered IO. |
325 | */ | 325 | */ |
326 | STATIC int | 326 | STATIC void |
327 | xfs_end_bio( | 327 | xfs_end_bio( |
328 | struct bio *bio, | 328 | struct bio *bio, |
329 | unsigned int bytes_done, | ||
330 | int error) | 329 | int error) |
331 | { | 330 | { |
332 | xfs_ioend_t *ioend = bio->bi_private; | 331 | xfs_ioend_t *ioend = bio->bi_private; |
333 | 332 | ||
334 | if (bio->bi_size) | ||
335 | return 1; | ||
336 | |||
337 | ASSERT(atomic_read(&bio->bi_cnt) >= 1); | 333 | ASSERT(atomic_read(&bio->bi_cnt) >= 1); |
338 | ioend->io_error = test_bit(BIO_UPTODATE, &bio->bi_flags) ? 0 : error; | 334 | ioend->io_error = test_bit(BIO_UPTODATE, &bio->bi_flags) ? 0 : error; |
339 | 335 | ||
@@ -343,7 +339,6 @@ xfs_end_bio( | |||
343 | bio_put(bio); | 339 | bio_put(bio); |
344 | 340 | ||
345 | xfs_finish_ioend(ioend, 0); | 341 | xfs_finish_ioend(ioend, 0); |
346 | return 0; | ||
347 | } | 342 | } |
348 | 343 | ||
349 | STATIC void | 344 | STATIC void |