Skip to content

Btrfs: add interface for writing compressed extents directly

Omar Sandoval linux-btrfs linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 14 repliesIn review

Changes from the RFC from the cover letter

- Rebased on misc-next, which now has the cleanups from patches 1-3.
- Generalized the interface to "raw writes" so that we can support, e.g., encrypted writes in the future.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fs: export rw_verify_area()fs/internal.h fs/read_write.c include/linux/fs.h+2 -50 replies
2/2btrfs: add ioctl for directly writing compressed datafs/btrfs/compression.c fs/btrfs/compression.h fs/btrfs/ctree.h +4 more+380 -1514 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJosef Bacik
1/2R-b
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] Btrfs: add interface for writing compressed extents directly

From: Omar Sandoval <[email protected]>

Hi,

This is an update of my RFC series [1]. Patch 1 is a VFS patch to export some permission checks. Patch 2 is the actual change.

Changes from the RFC:

- Rebased on misc-next, which now has the cleanups from patches 1-3.
- Generalized the interface to "raw writes" so that we can support, e.g., encrypted writes in the future.

Note that I kept the compat ioctl implementation the same based on the discussion in [2].

1: https://lore.kernel.org/linux-btrfs/[email protected]/
2: https://lore.kernel.org/linux-btrfs/20190903171458.GA7452@vader/

Omar Sandoval (2):
fs: export rw_verify_area()
btrfs: add ioctl for directly writing compressed data

 fs/btrfs/compression.c     |   6 +-
 fs/btrfs/compression.h     |  14 +--
 fs/btrfs/ctree.h           |   6 ++
 fs/btrfs/file.c            |  13 ++-
 fs/btrfs/inode.c           | 192 ++++++++++++++++++++++++++++++++++++-
 fs/btrfs/ioctl.c           |  95 ++++++++++++++++++
 fs/internal.h              |   5 -
 fs/read_write.c            |   1 +
 include/linux/fs.h         |   1 +
 include/uapi/linux/btrfs.h |  69 +++++++++++++
 10 files changed, 382 insertions(+), 20 deletions(-)
Signature · 1 line
2.23.0