Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/[email protected]/ Reported-by: Ansgar Lößer <[email protected]> Reported-by: Max Schlecht <[email protected]> Reported-by: Björn Scheuermann <[email protected]> Cc: Dave Chinner <[email protected]> Cc: Darrick J Wong <[email protected]> Signed-off-by: Ansgar Lößer <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information