diff options
author | Alexander Aring <aahringo@redhat.com> | 2023-08-01 14:09:48 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-08-10 10:33:03 -0500 |
commit | 1151935182b40bbe398905850f6f7f4fbb262e06 (patch) | |
tree | 1a15caa862be793db9bf5413c1620fbe22848cbf /fs/dlm/member.h | |
parent | b9d2f6ada0083bad46f37a1238fea718b575e0fa (diff) | |
download | linux-1151935182b40bbe398905850f6f7f4fbb262e06.tar.gz linux-1151935182b40bbe398905850f6f7f4fbb262e06.tar.bz2 linux-1151935182b40bbe398905850f6f7f4fbb262e06.zip |
fs: dlm: constify receive buffer
The dlm receive buffer should be never manipulated as DLM is the last
instance of parsing layer. This patch constify the whole receive buffer
so we are sure it never gets manipulated when it's being parsed.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/member.h')
-rw-r--r-- | fs/dlm/member.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/member.h b/fs/dlm/member.h index 433b2fac9f4a..f61cfde46314 100644 --- a/fs/dlm/member.h +++ b/fs/dlm/member.h @@ -18,7 +18,7 @@ void dlm_clear_members_gone(struct dlm_ls *ls); int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv,int *neg_out); int dlm_is_removed(struct dlm_ls *ls, int nodeid); int dlm_is_member(struct dlm_ls *ls, int nodeid); -int dlm_slots_version(struct dlm_header *h); +int dlm_slots_version(const struct dlm_header *h); void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc, struct dlm_member *memb); void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc); |