Files
Omar Sandoval ae2ced3c4f UPSTREAM: mm: export add_swap_extent() symbol
Btrfs currently does not support swap files because swap's use of bmap
does not work with copy-on-write and multiple devices.  See 35054394c4
("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>
Change-Id: Idd5135a511e0cd0a2731fc5b2fc32677a3925551
2023-12-13 16:06:05 +08:00
..
2018-10-10 23:30:36 -07:00
2017-12-14 08:21:34 -08:00
2021-10-17 10:35:21 +02:00
2019-02-11 17:06:14 +00:00
2020-04-02 19:02:31 +02:00
2021-03-07 11:24:22 +01:00
2018-05-16 11:32:47 +02:00
2017-12-14 08:21:34 -08:00
2018-12-19 19:22:06 +01:00