Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
fs: fc_log replace magic number 7 with ARRAY_SIZE()
Replace the hardcoded value `7` in `put_fc_log()` with `ARRAY_SIZE`. This improves maintainability by ensuring the loop adapts to changes in the buffer size. Signed-off-by: Guo Weikang <guoweikang.kernel@gmail.com> Link: https://lore.kernel.org/r/20241202081146.1031780-1-guoweikang.kernel@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Author Guo Weikang Committer Christian Brauner Date (Dec 22, 2024, 10:29 AM UTC) Commit
Copy SHA
Parent 3212a8f3 3212a8f34021a16d13ace91d3ac5f451ef8d0103