Skip to content

Commit

Permalink
[XFS] Ensure max diosize reported is aligned with minimum diosize.
Browse files Browse the repository at this point in the history
SGI-PV: 910890
SGI-Modid: xfs-linux-melb:xfs-kern:24689a

Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
Nathan Scott committed Jan 11, 2006
1 parent ee2a4f7 commit 0d14824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ xfs_ioctl(
mp->m_rtdev_targp : mp->m_ddev_targp;

da.d_mem = da.d_miniosz = 1 << target->pbr_sshift;
da.d_maxiosz = INT_MAX;
da.d_maxiosz = INT_MAX & ~(da.d_miniosz - 1);

if (copy_to_user(arg, &da, sizeof(da)))
return -XFS_ERROR(EFAULT);
Expand Down

0 comments on commit 0d14824

Please sign in to comment.