diff options
author | Nathan Scott <nathans@sgi.com> | 2006-01-10 23:33:51 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-01-10 23:33:51 -0500 |
commit | 0d14824c0774d050cb4232e1e470e5fc9e32e587 (patch) | |
tree | 5bb89912861e406b87a19bd0bface95fd0e7df69 /fs | |
parent | ee2a4f7caa4a72cdf2329081a1f7eb9939df3aab (diff) |
[XFS] Ensure max diosize reported is aligned with minimum diosize.
SGI-PV: 910890
SGI-Modid: xfs-linux-melb:xfs-kern:24689a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c index 71eabf4bf397..2b385394f28c 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c | |||
@@ -751,7 +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 | da.d_maxiosz = INT_MAX; | 754 | da.d_maxiosz = INT_MAX & ~(da.d_miniosz - 1); |
755 | 755 | ||
756 | if (copy_to_user(arg, &da, sizeof(da))) | 756 | if (copy_to_user(arg, &da, sizeof(da))) |
757 | return -XFS_ERROR(EFAULT); | 757 | return -XFS_ERROR(EFAULT); |