diff options
author | Christoph Hellwig <hch@lst.de> | 2015-01-14 04:42:31 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-20 16:02:56 -0500 |
commit | 97b713ba3ebaa6c8d84c2c720f5468a7c6a6eb4e (patch) | |
tree | a2a430b22f8c220e719114786905b18aa605f9ec /mm/swap.c | |
parent | a7a2c680a2ad81b3181a335ee76e23d5195007ee (diff) |
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>
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1138,8 +1138,6 @@ void __init swap_setup(void) | |||
1138 | #ifdef CONFIG_SWAP | 1138 | #ifdef CONFIG_SWAP |
1139 | int i; | 1139 | int i; |
1140 | 1140 | ||
1141 | if (bdi_init(swapper_spaces[0].backing_dev_info)) | ||
1142 | panic("Failed to init swap bdi"); | ||
1143 | for (i = 0; i < MAX_SWAPFILES; i++) { | 1141 | for (i = 0; i < MAX_SWAPFILES; i++) { |
1144 | spin_lock_init(&swapper_spaces[i].tree_lock); | 1142 | spin_lock_init(&swapper_spaces[i].tree_lock); |
1145 | INIT_LIST_HEAD(&swapper_spaces[i].i_mmap_nonlinear); | 1143 | INIT_LIST_HEAD(&swapper_spaces[i].i_mmap_nonlinear); |