]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: convert sick_map loops to use ARRAY_SIZE
authorDarrick J. Wong <djwong@kernel.org>
Fri, 20 Sep 2024 17:06:28 +0000 (19:06 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Sep 2024 08:01:26 +0000 (10:01 +0200)
commitaa0a0ddf4085cb0a10d041554356a131aa0031d9
treefc50edc6c5258c7b9c2b75aa092c82a6e2b6efd2
parent539e3ec77e975c4a90beeb54a12232b6d9187b8f
xfs: convert sick_map loops to use ARRAY_SIZE

Convert these arrays to use ARRAY_SIZE insteead of requiring an empty
sentinel array element at the end.  This saves memory and would have
avoided a bug that worked its way into the next patch.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_health.c