diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2019-11-25 13:24:03 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-05-28 14:01:51 +0200 |
commit | b75b7ca7c27dfd61dba368f390b7d4dc20b3a8cb (patch) | |
tree | df58fa87f32b7ed565cdce13d9d1cf566ea143a7 /fs/direct-io.c | |
parent | a43a67a2d715540c1368b9501a22b0373b5874c0 (diff) | |
download | lwn-b75b7ca7c27dfd61dba368f390b7d4dc20b3a8cb.tar.gz lwn-b75b7ca7c27dfd61dba368f390b7d4dc20b3a8cb.zip |
fs: remove dio_end_io()
Since we removed the last user of dio_end_io(), remove the helper
function dio_end_io().
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/direct-io.c')
-rw-r--r-- | fs/direct-io.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c index 00b4d15bb811..c44d60f375bc 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -386,25 +386,6 @@ static void dio_bio_end_io(struct bio *bio) spin_unlock_irqrestore(&dio->bio_lock, flags); } -/** - * dio_end_io - handle the end io action for the given bio - * @bio: The direct io bio thats being completed - * - * This is meant to be called by any filesystem that uses their own dio_submit_t - * so that the DIO specific endio actions are dealt with after the filesystem - * has done it's completion work. - */ -void dio_end_io(struct bio *bio) -{ - struct dio *dio = bio->bi_private; - - if (dio->is_async) - dio_bio_end_aio(bio); - else - dio_bio_end_io(bio); -} -EXPORT_SYMBOL_GPL(dio_end_io); - static inline void dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, struct block_device *bdev, |