summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2011-07-21 13:55:37 -0700
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-22 19:41:19 -0400
commited70afcd6e795e3de98df56f1cd0f898fbf641a7 (patch)
tree7d81e3e3e6b30fe8025d45aa6b81ea553095e701
parent295cc522c2b2834b302424e41ebb5846df6d61bd (diff)
downloadop-kernel-dev-ed70afcd6e795e3de98df56f1cd0f898fbf641a7.zip
op-kernel-dev-ed70afcd6e795e3de98df56f1cd0f898fbf641a7.tar.gz
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: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--include/linux/fs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index e0569e4..b224dc4 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -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;
OpenPOWER on IntegriCloud