Skip to content

Commit 4055351

Browse files
Christoph Hellwigaxboe
authored andcommitted
fs: remove the unused error argument to dio_end_io()
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent 9966afa commit 4055351

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

fs/btrfs/inode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8244,7 +8244,7 @@ static void btrfs_endio_direct_read(struct bio *bio)
82448244
kfree(dip);
82458245

82468246
dio_bio->bi_error = bio->bi_error;
8247-
dio_end_io(dio_bio, bio->bi_error);
8247+
dio_end_io(dio_bio);
82488248

82498249
if (io_bio->end_io)
82508250
io_bio->end_io(io_bio, err);
@@ -8304,7 +8304,7 @@ static void btrfs_endio_direct_write(struct bio *bio)
83048304
kfree(dip);
83058305

83068306
dio_bio->bi_error = bio->bi_error;
8307-
dio_end_io(dio_bio, bio->bi_error);
8307+
dio_end_io(dio_bio);
83088308
bio_put(bio);
83098309
}
83108310

@@ -8673,7 +8673,7 @@ static void btrfs_submit_direct(struct bio *dio_bio, struct inode *inode,
86738673
* Releases and cleans up our dio_bio, no need to bio_put()
86748674
* nor bio_endio()/bio_io_error() against dio_bio.
86758675
*/
8676-
dio_end_io(dio_bio, ret);
8676+
dio_end_io(dio_bio);
86778677
}
86788678
if (io_bio)
86798679
bio_put(io_bio);

fs/direct-io.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,12 @@ static void dio_bio_end_io(struct bio *bio)
348348
/**
349349
* dio_end_io - handle the end io action for the given bio
350350
* @bio: The direct io bio thats being completed
351-
* @error: Error if there was one
352351
*
353352
* This is meant to be called by any filesystem that uses their own dio_submit_t
354353
* so that the DIO specific endio actions are dealt with after the filesystem
355354
* has done it's completion work.
356355
*/
357-
void dio_end_io(struct bio *bio, int error)
356+
void dio_end_io(struct bio *bio)
358357
{
359358
struct dio *dio = bio->bi_private;
360359

include/linux/fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2843,7 +2843,7 @@ enum {
28432843
DIO_SKIP_DIO_COUNT = 0x08,
28442844
};
28452845

2846-
void dio_end_io(struct bio *bio, int error);
2846+
void dio_end_io(struct bio *bio);
28472847

28482848
ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode,
28492849
struct block_device *bdev, struct iov_iter *iter,

0 commit comments

Comments
 (0)