--- zzzz-none-000/linux-4.4.271/include/linux/fs.h 2021-06-03 06:22:09.000000000 +0000 +++ maple-fsgw-759/linux-4.4.271/include/linux/fs.h 2023-12-20 10:37:35.000000000 +0000 @@ -2734,6 +2734,7 @@ DIO_SKIP_DIO_COUNT = 0x08, }; +#ifdef CONFIG_DIRECT_IO void dio_end_io(struct bio *bio, int error); ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, @@ -2741,6 +2742,18 @@ loff_t offset, get_block_t get_block, dio_iodone_t end_io, dio_submit_t submit_io, int flags); +#else +static inline void dio_end_io(struct bio *bio, int error) +{ +} +static inline ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, + struct block_device *bdev, struct iov_iter *iter, loff_t offset, + get_block_t get_block, dio_iodone_t end_io, + dio_submit_t submit_io, int flags) +{ + return -EOPNOTSUPP; +} +#endif static inline ssize_t blockdev_direct_IO(struct kiocb *iocb, struct inode *inode,