diff options
author | Ryusuke Konishi <konishi.ryusuke@gmail.com> | 2024-08-27 02:41:16 +0900 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-01 20:43:44 -0700 |
commit | 74b0099340e0be96b37f5f8b0b5d02b48bb25a2b (patch) | |
tree | 9b4b1322df591d7989cece7bea83f53a3ed4a456 /tools/perf/scripts/python/gecko.py | |
parent | 3f66cc261ccb54a8e4d8d5aa51c389c19453b00c (diff) |
nilfs2: refactor nilfs_segctor_thread()
Simplify nilfs_segctor_thread(), the main loop function of the log writer
thread, to make the basic structure easier to understand.
In particular, the acquisition and release of the sc_state_lock spinlock
was scattered throughout the function, so extract the determination of
whether log writing is required into a helper function and make the
spinlock lock sections clearer.
Link: https://lkml.kernel.org/r/20240826174116.5008-9-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: Huang Xiaojia <huangxiaojia2@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions