lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 8 Jul 2020 16:19:24 -0500 From: Goldwyn Rodrigues <rgoldwyn@...e.de> To: linux-btrfs@...r.kernel.org Cc: linux-fsdevel@...r.kernel.org, darrick.wong@...cle.com, hch@....de, cluster-devel@...hat.com, linux-ext4@...r.kernel.org, linux-xfs@...r.kernel.org, Goldwyn Rodrigues <rgoldwyn@...e.com>, Nikolay Borisov <nborisov@...e.com>, Johannes Thumshirn <jthumshirn@...e.de> Subject: [PATCH 4/6] fs: remove dio_end_io() From: Goldwyn Rodrigues <rgoldwyn@...e.com> Since we removed the last user of dio_end_io(), remove the helper function dio_end_io(). Reviewed-by: Nikolay Borisov <nborisov@...e.com> Reviewed-by: Johannes Thumshirn <jthumshirn@...e.de> Reviewed-by: Christoph Hellwig <hch@....de> Signed-off-by: Goldwyn Rodrigues <rgoldwyn@...e.com> --- fs/direct-io.c | 19 ------------------- include/linux/fs.h | 2 -- 2 files changed, 21 deletions(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index 6d5370eac2a8..1543b5af400e 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, diff --git a/include/linux/fs.h b/include/linux/fs.h index 3f881a892ea7..9b3f250d634c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3202,8 +3202,6 @@ enum { DIO_SKIP_HOLES = 0x02, }; -void dio_end_io(struct bio *bio); - ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, struct block_device *bdev, struct iov_iter *iter, get_block_t get_block, -- 2.26.2
Powered by blists - more mailing lists