diff options
author | 2020-10-01 10:56:07 -0700 | |
---|---|---|
committer | 2020-10-07 08:40:29 -0700 | |
commit | acd1ac3aa22fd58803a12d26b1ab7f70232f8d8d (patch) | |
tree | 92a1d1bad509ebe50a716e99a1103c85b6686944 /drivers/usb/cdns3/cdns3-imx.c | |
parent | xfs: only relog deferred intent items if free space in the log gets low (diff) | |
download | linux-dev-acd1ac3aa22fd58803a12d26b1ab7f70232f8d8d.tar.xz linux-dev-acd1ac3aa22fd58803a12d26b1ab7f70232f8d8d.zip |
xfs: limit entries returned when counting fsmap records
If userspace asked fsmap to count the number of entries, we cannot
return more than UINT_MAX entries because fmh_entries is u32.
Therefore, stop counting if we hit this limit or else we will waste time
to return truncated results.
Fixes: e89c041338ed ("xfs: implement the GETFSMAP ioctl")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions