From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751234AbdEaPv6 (ORCPT ); Wed, 31 May 2017 11:51:58 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36562 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009AbdEaPv5 (ORCPT ); Wed, 31 May 2017 11:51:57 -0400 From: Michal Hocko To: LKML Cc: , Andrew Morton , Alexander Viro , Florian Westphal , Herbert Xu , Jozsef Kadlecsik , Michal Hocko , Pablo Neira Ayuso , Thomas Graf Subject: [PATCH 0/3] replace few other kvmalloc open coded variants Date: Wed, 31 May 2017 17:51:42 +0200 Message-Id: <20170531155145.17111-1-mhocko@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, while doing something unrelated I've noticed these few open coded kvmalloc variants so let's replace them with the library function. Each patch can be merged separately so I hope I've CCed proper people. This is based on the current linux-next. Shortlog Michal Hocko (3): fs/file: replace alloc_fdmem with kvmalloc alternative lib/rhashtable.c: use kvzalloc in bucket_table_alloc when possible netfilter: use kvmalloc xt_alloc_table_info Diffstat fs/file.c | 22 ++++------------------ lib/rhashtable.c | 7 +++---- net/netfilter/x_tables.c | 12 ++++-------- 3 files changed, 11 insertions(+), 30 deletions(-)