mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
[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>
This commit is contained in:
parent
ee2a4f7caa
commit
0d14824c07
1 changed files with 1 additions and 1 deletions
|
@ -751,7 +751,7 @@ xfs_ioctl(
|
||||||
mp->m_rtdev_targp : mp->m_ddev_targp;
|
mp->m_rtdev_targp : mp->m_ddev_targp;
|
||||||
|
|
||||||
da.d_mem = da.d_miniosz = 1 << target->pbr_sshift;
|
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)))
|
if (copy_to_user(arg, &da, sizeof(da)))
|
||||||
return -XFS_ERROR(EFAULT);
|
return -XFS_ERROR(EFAULT);
|
||||||
|
|
Loading…
Reference in a new issue