Skip to content
Commit 4a57a840 authored by Ansgar Lößer's avatar Ansgar Lößer Committed by Linus Torvalds
Browse files

vf/remap: return the amount of bytes actually deduplicated

When using the FIDEDUPRANGE ioctl, in case of success the requested size
is returned. In some cases this might not be the actual amount of bytes
deduplicated.

This change modifies vfs_dedupe_file_range() to report the actual amount
of bytes deduplicated, instead of the requested amount.

Link: https://lore.kernel.org/linux-fsdevel/5548ef63-62f9-4f46-5793-03165ceccacc@tu-darmstadt.de/


Reported-by: default avatarAnsgar Lößer <ansgar.loesser@kom.tu-darmstadt.de>
Reported-by: default avatarMax Schlecht <max.schlecht@informatik.hu-berlin.de>
Reported-by: default avatarBjörn Scheuermann <scheuermann@kom.tu-darmstadt.de>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Darrick J Wong <djwong@kernel.org>
Signed-off-by: default avatarAnsgar Lößer <ansgar.loesser@kom.tu-darmstadt.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d0b97f38
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment