]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/splice.c
mm: only include blk_types in swap.h if CONFIG_SWAP is enabled
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Nov 2016 13:40:16 +0000 (07:40 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 1 Nov 2016 15:43:26 +0000 (09:43 -0600)
commitbe297968da22cf40c9c419df51e71ba8856a2ec2
tree2aff842b99f54ff0c920f6fca1d53c531975240e
parent9f08217120568afdfb59973a89a675e649c0096d
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>
drivers/staging/lustre/include/linux/lnet/types.h
drivers/staging/lustre/lustre/llite/rw.c
fs/ntfs/aops.c
fs/ntfs/mft.c
fs/reiserfs/inode.c
fs/splice.c
include/linux/swap.h