]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: convert sick_map loops to use ARRAY_SIZE
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:21 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:40 +0000 (13:38 -0800)
commit21e62bddf0efdf89223d7094b9e9089a3a345807
tree4f058113d3a03c48faf5718a6f304bd0500918b3
parent35537f25d23697716f0070ea0a6e8b3f1fe10196
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