diff options
author | Guo Weikang <guoweikang.kernel@gmail.com> | 2024-12-02 11:11:45 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-12-22 13:29:52 +0300 |
commit | 4db9f52fa9b81addc412330957bb7a657d2f1ffb (patch) | |
tree | dae0c42ad79f1bbff2292310e0f224ab663a3316 /tools/perf/scripts/python/task-analyzer.py | |
parent | 3212a8f34021a16d13ace91d3ac5f451ef8d0103 (diff) | |
download | linux-4db9f52fa9b81addc412330957bb7a657d2f1ffb.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions