diff options
| author | Chao Yu <chao@kernel.org> | 2025-07-07 19:46:14 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-07-09 18:02:20 +0000 |
| commit | c1cfc87e49525853ebe9dce2ffce6332eb811fa6 (patch) | |
| tree | f568cbe2c5d2f368c59509138e2127922c83cf59 /scripts/gdb/linux/proc.py | |
| parent | a509a55f8eecc8970b3980c6f06886bbff0e2f68 (diff) | |
f2fs: introduce is_cur{seg,sec}()
There are redundant codes in IS_CUR{SEG,SEC}() macros, let's introduce
inline is_cur{seg,sec}() functions, and use a loop in it for cleanup.
Meanwhile, it enhances expansibility, as it doesn't need to change
is_cur{seg,sec}() when we add a new log header.
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions
