diff options
author | Alexander Aring <aahringo@redhat.com> | 2021-03-02 01:05:15 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-03-09 17:56:42 +0300 |
commit | e1a7cbce53f6524e28421b980464a36f0fa9631c (patch) | |
tree | 0eea5f0156ba6b80a1e08bd193311c32c9f7f533 /fs/dlm/lock.c | |
parent | c45674fbdda138814ca21138475219c96fa5aa1f (diff) | |
download | linux-e1a7cbce53f6524e28421b980464a36f0fa9631c.tar.xz |
fs: dlm: use GFP_ZERO for page buffer
This patch uses GFP_ZERO for allocate a page for the internal dlm
sending buffer allocator instead of calling memset zero after every
allocation. An already allocated space will never be reused again.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lock.c')
-rw-r--r-- | fs/dlm/lock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 002123efc6b0..b93df39d0915 100644 --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -3541,8 +3541,6 @@ static int _create_message(struct dlm_ls *ls, int mb_len, if (!mh) return -ENOBUFS; - memset(mb, 0, mb_len); - ms = (struct dlm_message *) mb; ms->m_header.h_version = (DLM_HEADER_MAJOR | DLM_HEADER_MINOR); |