Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed70afcd authored by Randy Dunlap's avatar Randy Dunlap Committed by Al Viro
Browse files

mm/truncate.c: fix build for CONFIG_BLOCK not enabled



Fix build error when CONFIG_BLOCK is not enabled by providing a stub
inode_dio_wait() function.

mm/truncate.c:612: error: implicit declaration of function 'inode_dio_wait'

Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 295cc522
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2423,6 +2423,10 @@ static inline ssize_t blockdev_direct_IO(int rw, struct kiocb *iocb,
				    offset, nr_segs, get_block, NULL, NULL,
				    DIO_LOCKING | DIO_SKIP_HOLES);
}
#else
static inline void inode_dio_wait(struct inode *inode)
{
}
#endif

extern const struct file_operations generic_ro_fops;