Darrick J. Wong acd1ac3aa2 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>
2020-10-07 08:40:29 -07:00
..
2020-09-15 20:52:43 -07:00
2020-09-06 18:05:51 -07:00
2020-09-15 20:52:41 -07:00
2020-09-15 20:52:41 -07:00
2020-03-02 20:55:55 -08:00
2020-06-02 19:21:40 -07:00
2019-10-28 08:37:54 -07:00
2020-09-15 20:52:39 -07:00
2020-03-11 09:11:39 -07:00
2020-09-25 11:34:07 -07:00
2020-05-07 08:27:48 -07:00
2020-09-15 20:52:42 -07:00
2020-09-15 20:52:41 -07:00
2020-10-07 08:40:29 -07:00
2020-10-07 08:40:29 -07:00
2020-09-15 20:52:39 -07:00
2020-09-15 20:52:39 -07:00
2019-07-03 08:21:58 -07:00
2020-09-15 20:52:39 -07:00
2020-05-08 08:51:34 -07:00