From: Nathan Scott Date: Wed, 11 Jan 2006 04:32:30 +0000 (+1100) Subject: [XFS] Make d_maxiosz report the real maximum (INT_MAX) so we dont X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a255a7456d4051e804fd6efff9a7c0f43483a7fc;p=deliverable%2Flinux.git [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: Nathan Scott --- diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c index f98c5be3dfe7..71eabf4bf397 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c @@ -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);