diff options
author | Alexander Aring <aahringo@redhat.com> | 2021-03-01 17:05:15 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-03-09 08:56:42 -0600 |
commit | e1a7cbce53f6524e28421b980464a36f0fa9631c (patch) | |
tree | 0eea5f0156ba6b80a1e08bd193311c32c9f7f533 /fs/dlm/rcom.c | |
parent | c45674fbdda138814ca21138475219c96fa5aa1f (diff) | |
download | linux-e1a7cbce53f6524e28421b980464a36f0fa9631c.tar.gz linux-e1a7cbce53f6524e28421b980464a36f0fa9631c.tar.bz2 linux-e1a7cbce53f6524e28421b980464a36f0fa9631c.zip |
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/rcom.c')
-rw-r--r-- | fs/dlm/rcom.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/dlm/rcom.c b/fs/dlm/rcom.c index 73ddee5159d7..f5b1bd65728d 100644 --- a/fs/dlm/rcom.c +++ b/fs/dlm/rcom.c @@ -41,7 +41,6 @@ static int create_rcom(struct dlm_ls *ls, int to_nodeid, int type, int len, to_nodeid, type, len); return -ENOBUFS; } - memset(mb, 0, mb_len); rc = (struct dlm_rcom *) mb; @@ -462,7 +461,6 @@ int dlm_send_ls_not_ready(int nodeid, struct dlm_rcom *rc_in) mh = dlm_lowcomms_get_buffer(nodeid, mb_len, GFP_NOFS, &mb); if (!mh) return -ENOBUFS; - memset(mb, 0, mb_len); rc = (struct dlm_rcom *) mb; |