aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/recover.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2023-08-01 14:09:48 -0400
committerDavid Teigland <teigland@redhat.com>2023-08-10 10:33:03 -0500
commit1151935182b40bbe398905850f6f7f4fbb262e06 (patch)
tree1a15caa862be793db9bf5413c1620fbe22848cbf /fs/dlm/recover.h
parentb9d2f6ada0083bad46f37a1238fea718b575e0fa (diff)
downloadlinux-1151935182b40bbe398905850f6f7f4fbb262e06.tar.gz
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/recover.h')
-rw-r--r--fs/dlm/recover.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/recover.h b/fs/dlm/recover.h
index c5ce2ef139342..dbc51013ecadb 100644
--- a/fs/dlm/recover.h
+++ b/fs/dlm/recover.h
@@ -20,7 +20,7 @@ int dlm_recover_directory_wait(struct dlm_ls *ls, uint64_t seq);
int dlm_recover_locks_wait(struct dlm_ls *ls, uint64_t seq);
int dlm_recover_done_wait(struct dlm_ls *ls, uint64_t seq);
int dlm_recover_masters(struct dlm_ls *ls, uint64_t seq);
-int dlm_recover_master_reply(struct dlm_ls *ls, struct dlm_rcom *rc);
+int dlm_recover_master_reply(struct dlm_ls *ls, const struct dlm_rcom *rc);
int dlm_recover_locks(struct dlm_ls *ls, uint64_t seq);
void dlm_recovered_lock(struct dlm_rsb *r);
int dlm_create_root_list(struct dlm_ls *ls);