fs: kill BDI_CAP_SWAP_BACKED
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Jan 2015 09:42:31 +0000 (10:42 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 20 Jan 2015 21:02:56 +0000 (14:02 -0700)
commit97b713ba3ebaa6c8d84c2c720f5468a7c6a6eb4e
treea2a430b22f8c220e719114786905b18aa605f9ec
parenta7a2c680a2ad81b3181a335ee76e23d5195007ee
fs: kill BDI_CAP_SWAP_BACKED

This bdi flag isn't too useful - we can determine that a vma is backed by
either swap or shmem trivially in the caller.

This also allows removing the backing_dev_info instaces for swap and shmem
in favor of noop_backing_dev_info.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/backing-dev.h
mm/madvise.c
mm/shmem.c
mm/swap.c
mm/swap_state.c