Skip to content
Commit 3078d85c authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

vfs: verify source area in vfs_dedupe_file_range_one()



Call remap_verify_area() on the source file as well as the destination.

When called from vfs_dedupe_file_range() the check as already been
performed, but not so if called from layered fs (overlayfs, etc...)

Could ommit the redundant check in vfs_dedupe_file_range(), but leave for
now to get error early (for fear of breaking backward compatibility).

This call shouldn't be performance sensitive.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 7c03e2cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment