Skip to content

Commit

Permalink
[XFS] Make d_maxiosz report the real maximum (INT_MAX) so we dont
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nathan Scott committed Jan 11, 2006
1 parent b04ed21 commit a255a74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/xfs/linux-2.6/xfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a255a74

Please sign in to comment.