Skip to content

Commit

Permalink
mm/truncate.c: fix build for CONFIG_BLOCK not enabled
Browse files Browse the repository at this point in the history
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: Randy Dunlap <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
rddunlap authored and Al Viro committed Jul 22, 2011
1 parent 295cc52 commit ed70afc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed70afc

Please sign in to comment.