Commit a255a745 authored by Nathan Scott's avatar Nathan Scott

[XFS] Make d_maxiosz report the real maximum (INT_MAX) so we dont

incorrectly limit people using this interface to size IO buffers.

SGI-PV: 910890
SGI-Modid: xfs-linux-melb:xfs-kern:24657a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent b04ed21a
......@@ -751,8 +751,7 @@ xfs_ioctl(
mp->m_rtdev_targp : mp->m_ddev_targp;
da.d_mem = da.d_miniosz = 1 << target->pbr_sshift;
/* The size dio will do in one go */
da.d_maxiosz = 64 * PAGE_CACHE_SIZE;
da.d_maxiosz = INT_MAX;
if (copy_to_user(arg, &da, sizeof(da)))
return -XFS_ERROR(EFAULT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment