summary refs log tree commit diff
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.de>2013-08-06 11:42:51 -0700
committerChris Mason <chris.mason@fusionio.com>2013-09-01 08:05:00 -0400
commit416161db9b63e353a8fb79d1369779175102fca1 (patch)
tree60627f898b85d3173e83222d12fc9f677e84730e /fs/dcache.c
parent4b384318a74e38eb248f74f9a92a700d2ce841f1 (diff)
downloadlinux-416161db9b63e353a8fb79d1369779175102fca1.tar.gz
btrfs: offline dedupe
This patch adds an ioctl, BTRFS_IOC_FILE_EXTENT_SAME which will try to
de-duplicate a list of extents across a range of files.

Internally, the ioctl re-uses code from the clone ioctl. This avoids
rewriting a large chunk of extent handling code.

Userspace passes in an array of file, offset pairs along with a length
argument. The ioctl will then (for each dedupe) do a byte-by-byte comparison
of the user data before deduping the extent. Status and number of bytes
deduped are returned for each operation.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Reviewed-by: Zach Brown <zab@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/dcache.c')
0 files changed, 0 insertions, 0 deletions