diff options
author | Alexander Aring <aahringo@redhat.com> | 2023-08-01 20:09:48 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-08-10 17:33:03 +0200 |
commit | 1151935182b40bbe398905850f6f7f4fbb262e06 (patch) | |
tree | 1a15caa862be793db9bf5413c1620fbe22848cbf /fs/dlm/dir.h | |
parent | fs: dlm: drop rxbuf manipulation in dlm_recover_master_copy (diff) | |
download | linux-1151935182b40bbe398905850f6f7f4fbb262e06.tar.xz 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/dir.h')
-rw-r--r-- | fs/dlm/dir.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/dir.h b/fs/dlm/dir.h index 0635582da003..39ecb69d7ef3 100644 --- a/fs/dlm/dir.h +++ b/fs/dlm/dir.h @@ -16,8 +16,8 @@ int dlm_dir_nodeid(struct dlm_rsb *rsb); int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash); void dlm_recover_dir_nodeid(struct dlm_ls *ls); int dlm_recover_directory(struct dlm_ls *ls, uint64_t seq); -void dlm_copy_master_names(struct dlm_ls *ls, char *inbuf, int inlen, - char *outbuf, int outlen, int nodeid); +void dlm_copy_master_names(struct dlm_ls *ls, const char *inbuf, int inlen, + char *outbuf, int outlen, int nodeid); #endif /* __DIR_DOT_H__ */ |