On Mon, Apr 27, 2020 at 9:20 PM Christoph Hellwig <hch@xxxxxx> wrote: > > Replace fiemap_check_flags with a fiemap_validate helpers that also takes Leftover fiemap_validate > the inode and mapped range, and performs the sanity check and truncation > previously done in fiemap_check_range. This way the validation is inside > the file system itself and thus properly works for the stacked overlayfs > case as well. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Amir Goldstein <amir73il@xxxxxxxxx> Thanks for fixing this, Amir.