Skip to content

RFC vfs: hoist reflink/dedupe ioctls to the VFS

Darrick J. Wong linux-api linux-btrfs linux-fsdevel linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 RFC Latest9 patches 9 repliesIn review

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9vfs: add copy_file_range syscall and vfs helperfs/read_write.c include/linux/fs.h include/linux/syscalls.h +2 more+130 -10 replies
2/9x86: add sys_copy_file_range to syscall tablesarch/x86/entry/syscalls/syscall_32.tbl arch/x86/entry/syscalls/syscall_64.tbl+2 -00 replies
3/9btrfs: add .copy_file_range file operationfs/btrfs/ctree.h fs/btrfs/file.c fs/btrfs/ioctl.c+56 -390 replies
4/9vfs: Add vfs_copy_file_range() support for pagecache copiesfs/read_write.c+9 -40 replies
5/9locks: new locks_mandatory_area calling conventionfs/locks.c fs/read_write.c include/linux/fs.h+24 -310 replies
6/9vfs: pull btrfs clone API to vfs layerfs/btrfs/ctree.h fs/btrfs/file.c fs/btrfs/ioctl.c +8 more+254 -1930 replies
7/9vfs: wire up compat ioctl for CLONE/CLONE_RANGEfs/compat_ioctl.c fs/read_write.c+5 -10 replies
8/9vfs: hoist the btrfs deduplication ioctl to the vfsfs/compat_ioctl.c fs/ioctl.c fs/read_write.c +2 more+173 -08 replies
9/9btrfs: use new dedupe data function pointerfs/btrfs/ctree.h fs/btrfs/file.c fs/btrfs/ioctl.c+16 -970 replies

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigJosef BacikDavid SterbaDarrick J. WongPadraig BradyJ. Bruce Fields
1/9R-b
2/9R-b
3/9R-b R-b R-b
4/9R-b R-b R-b
5/9A-b
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v4 thread

Cover letter [RFCv4 0/9] vfs: hoist reflink/dedupe ioctls to the VFS

Hi all,

This patch set goes along with the fourth revision of an RFC adding to XFS kernel support for tracking reverse-mappings of physical blocks to file and metadata; and support for mapping multiple file logical blocks to the same physical block, more commonly known as reflinking.

The first four patches are taken verbatim from Anna Schumaker's patches adding a physical copy call to the kernel. The next two patches are from Christoph Hellwig, and hoist the clone and clone_range ioctls into the VFS. These patches are a bit old at this point; they're in here solely to demonstrate how this (long) patchset diverges from upstream.

The third patch fixes some bugs in the first four patches, and the fourth patch hoists the extent_same ioctl into the VFS as the dedupe ioctl.

The patch set is based on the current (4.4-rc5) upstream kernel.

If you're going to start using this mess, you probably ought to just pull from my github trees for kernel[1], xfsprogs[2], and xfstests[3]. See also the xfs-docs[4] and manpage[5] updates.

This is an extraordinary way to eat your data. Enjoy!

Comments and questions are, as always, welcome.

--D

[1] https://github.com/djwong/linux/tree/for-dave
[2] https://github.com/djwong/xfsprogs/tree/for-dave
[3] https://github.com/djwong/xfstests/tree/for-dave
[4] https://github.com/djwong/xfs-documentation/tree/for-dave
[5] https://github.com/djwong/man-pages/commits/for-mtk