summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/llite/rw.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-11-01 07:40:16 -0600
committerJens Axboe <axboe@fb.com>2016-11-01 09:43:26 -0600
commitbe297968da22cf40c9c419df51e71ba8856a2ec2 (patch)
tree2aff842b99f54ff0c920f6fca1d53c531975240e /drivers/staging/lustre/lustre/llite/rw.c
parent9f08217120568afdfb59973a89a675e649c0096d (diff)
downloadop-kernel-dev-be297968da22cf40c9c419df51e71ba8856a2ec2.zip
op-kernel-dev-be297968da22cf40c9c419df51e71ba8856a2ec2.tar.gz
mm: only include blk_types in swap.h if CONFIG_SWAP is enabled
It's only needed for the CONFIG_SWAP-only use of bio_end_io_t. Because CONFIG_SWAP implies CONFIG_BLOCK this will allow to drop some ifdefs in blk_types.h. Instead we'll need to add a few explicit includes that were implicit before, though. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/staging/lustre/lustre/llite/rw.c')
-rw-r--r--drivers/staging/lustre/lustre/llite/rw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/lustre/lustre/llite/rw.c b/drivers/staging/lustre/lustre/llite/rw.c
index 50c0152..76a6836 100644
--- a/drivers/staging/lustre/lustre/llite/rw.c
+++ b/drivers/staging/lustre/lustre/llite/rw.c
@@ -47,6 +47,7 @@
#include <linux/pagemap.h>
/* current_is_kswapd() */
#include <linux/swap.h>
+#include <linux/bvec.h>
#define DEBUG_SUBSYSTEM S_LLITE
OpenPOWER on IntegriCloud