]> Git Repo - linux.git/commit - fs/ioctl.c
fs: move fiemap range validation into the file systems instances
authorChristoph Hellwig <[email protected]>
Sat, 23 May 2020 07:30:13 +0000 (09:30 +0200)
committerTheodore Ts'o <[email protected]>
Thu, 4 Jun 2020 03:16:55 +0000 (23:16 -0400)
commitcddf8a2c4a8286ae60fc866eab59c8bc524e93a0
treec3f18f1243c85c5f3d67aa2d4f7afc44f3feccb8
parent2732881894714f545ffac42dad7ba7730069874d
fs: move fiemap range validation into the file systems instances

Replace fiemap_check_flags with a fiemap_prep helper that also takes 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 <[email protected]>
Reviewed-by: Amir Goldstein <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Documentation/filesystems/fiemap.txt
fs/btrfs/inode.c
fs/cifs/smb2ops.c
fs/ext4/extents.c
fs/f2fs/data.c
fs/ioctl.c
fs/iomap/fiemap.c
fs/nilfs2/inode.c
fs/ocfs2/extent_map.c
include/linux/fiemap.h
This page took 0.059882 seconds and 4 git commands to generate.