Skip to content

Btrfs: implement swap file support

Omar Sandoval linux-btrfs linux-fsdevel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest6 patches 9 repliesIn review
  2. v86 patches 9 repliesSuperseded
  3. v76 patches 10 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v66 patches5 repliesSuperseded
v56 patches2 repliesSuperseded
v4 RFC6 patches13 repliesSuperseded

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mm: split SWP_FILE into SWP_ACTIVATED and SWP_FSinclude/linux/swap.h mm/page_io.c mm/swapfile.c+18 -140 replies
2/6mm: export add_swap_extent()mm/swapfile.c+1 -00 replies
3/6vfs: update swap_{,de}activate documentationDocumentation/filesystems/Locking Documentation/filesystems/vfs.txt+15 -140 replies
4/6Btrfs: prevent ioctls from interfering with a swap filefs/btrfs/ctree.h fs/btrfs/dev-replace.c fs/btrfs/disk-io.c +3 more+131 -120 replies
5/6Btrfs: rename get_chunk_map() and make it non-staticfs/btrfs/volumes.c fs/btrfs/volumes.h+20 -110 replies
6/6Btrfs: support swap filesfs/btrfs/inode.c+338 -00 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchNikolay BorisovJohannes Weiner
1/6R-b A-b
2/6A-b
3/6R-b
4/6
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCH v9 0/6] Btrfs: implement swap file support

From: Omar Sandoval <[email protected]>

Hi,

This series implements swap file support for Btrfs.

Changes from v8 [1]:

- Fixed a bug in btrfs_swap_activate() which would cause us to miss some file extents if they were merged into one extent map entry.
- Fixed build for !CONFIG_SWAP.
- Changed all error messages to KERN_WARN.
- Unindented long error messages.

I've Cc'd Jon and Al on patch 3 this time, so hopefully we can get an ack for that one, too.

Thanks!

1: https://www.spinics.net/lists/linux-btrfs/msg82267.html

Omar Sandoval (6):
mm: split SWP_FILE into SWP_ACTIVATED and SWP_FS
mm: export add_swap_extent()
vfs: update swap_{,de}activate documentation
Btrfs: prevent ioctls from interfering with a swap file
Btrfs: rename get_chunk_map() and make it non-static
Btrfs: support swap files

 Documentation/filesystems/Locking |  17 +-
 Documentation/filesystems/vfs.txt |  12 +-
 fs/btrfs/ctree.h                  |  29 +++
 fs/btrfs/dev-replace.c            |   8 +
 fs/btrfs/disk-io.c                |   4 +
 fs/btrfs/inode.c                  | 338 ++++++++++++++++++++++++++++++
 fs/btrfs/ioctl.c                  |  31 ++-
 fs/btrfs/relocation.c             |  18 +-
 fs/btrfs/volumes.c                |  82 ++++++--
 fs/btrfs/volumes.h                |   2 +
 include/linux/swap.h              |  13 +-
 mm/page_io.c                      |   6 +-
 mm/swapfile.c                     |  14 +-
 13 files changed, 523 insertions(+), 51 deletions(-)
Signature · 1 line
2.19.0