Skip to content

Commit

Permalink
fs: make fiemap work from compat_ioctl
Browse files Browse the repository at this point in the history
We don't need to do anything special with fiemap to make it work with a
64bit kernel from 32bit userspace, so just go down to do_vfs_ioctl().
Without this patch we were incorrectly failing to do fiemap with a 32bit
userspace on a 64bit kernel.

Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
josefbacik authored and Al Viro committed Nov 5, 2017
1 parent d337b66 commit ceac204
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/compat_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,7 @@ COMPAT_SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd,
case FICLONE:
case FICLONERANGE:
case FIDEDUPERANGE:
case FS_IOC_FIEMAP:
goto do_ioctl;

case FIBMAP:
Expand Down

0 comments on commit ceac204

Please sign in to comment.