diff options
author | Nathan Scott <nathans@sgi.com> | 2006-01-10 23:32:30 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-01-10 23:32:30 -0500 |
commit | a255a7456d4051e804fd6efff9a7c0f43483a7fc (patch) | |
tree | 623c53e2dc77d61a249e257e9fee5f569857031a /fs/xfs/linux-2.6 | |
parent | b04ed21a1fdbfe48ee0738519a4d1af09589dfea (diff) |
[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 <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
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( | |||
751 | mp->m_rtdev_targp : mp->m_ddev_targp; | 751 | mp->m_rtdev_targp : mp->m_ddev_targp; |
752 | 752 | ||
753 | da.d_mem = da.d_miniosz = 1 << target->pbr_sshift; | 753 | da.d_mem = da.d_miniosz = 1 << target->pbr_sshift; |
754 | /* The size dio will do in one go */ | 754 | da.d_maxiosz = INT_MAX; |
755 | da.d_maxiosz = 64 * PAGE_CACHE_SIZE; | ||
756 | 755 | ||
757 | if (copy_to_user(arg, &da, sizeof(da))) | 756 | if (copy_to_user(arg, &da, sizeof(da))) |
758 | return -XFS_ERROR(EFAULT); | 757 | return -XFS_ERROR(EFAULT); |