Omar Sandoval aa8aa8a331 mm: export add_swap_extent()
Btrfs currently does not support swap files because swap's use of bmap
does not work with copy-on-write and multiple devices.  See 35054394c4b3
("Btrfs: stop providing a bmap operation to avoid swapfile corruptions").

However, the swap code has a mechanism for the filesystem to manually add
swap extents using add_swap_extent() from the ->swap_activate() aop.
iomap has done this since 67482129cdab ("iomap: add a swapfile activation
function").  Btrfs will do the same in a later patch, so export
add_swap_extent().

Link: http://lkml.kernel.org/r/bb1208575e02829aae51b538709476964f97b1ea.1536704650.git.osandov@fb.com
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: David Sterba <dsterba@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-10-26 16:38:15 -07:00
..
2018-10-26 16:26:35 -07:00
2018-10-22 17:30:06 +01:00
2018-06-07 17:34:36 -07:00
2018-10-26 16:26:33 -07:00
2018-10-26 16:38:15 -07:00
2018-04-11 10:28:39 -07:00
2018-10-26 16:26:33 -07:00
2018-10-26 16:26:33 -07:00
2018-10-26 16:26:33 -07:00
2018-10-26 16:26:33 -07:00
2018-05-11 17:28:45 -07:00
2018-02-06 18:32:48 -08:00