diff options
| author | Andreas Gruenbacher <agruenba@redhat.com> | 2026-01-23 14:45:46 +0100 |
|---|---|---|
| committer | Andreas Gruenbacher <agruenba@redhat.com> | 2026-01-26 14:28:18 +0100 |
| commit | 0ec49e7ea6e02e7ff146e031b0fe2243c2bad43a (patch) | |
| tree | 5fa52c159e0673fdb5b70291f10e5c5e9a55a394 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | d3b39fcb39574780fffec4357412ce0460339e9f (diff) | |
gfs2: Introduce glock_{type,number,sbd} helpers
Introduce glock_type(), glock_number(), and glock_sbd() helpers for
accessing a glock's type, number, and super block pointer more easily.
Created with Coccinelle using the following semantic patch:
@@ struct gfs2_glock *gl; @@
- gl->gl_name.ln_type
+ glock_type(gl)
@@ struct gfs2_glock *gl; @@
- gl->gl_name.ln_number
+ glock_number(gl)
@@ struct gfs2_glock *gl; @@
- gl->gl_name.ln_sbd
+ glock_sbd(gl)
glock_sbd() is a macro because it is used with const as well as
non-const struct gfs2_glock * arguments.
Instances in macro definitions, particularly in tracepoint definitions,
replaced by hand.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
