From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757426AbcCaOVs (ORCPT ); Thu, 31 Mar 2016 10:21:48 -0400 Received: from smtp2.ccs.ornl.gov ([160.91.199.39]:35450 "EHLO smtp2.ccs.ornl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756846AbcCaOSt (ORCPT ); Thu, 31 Mar 2016 10:18:49 -0400 From: James Simmons To: Greg Kroah-Hartman , devel@driverdev.osuosl.org, Andreas Dilger , Oleg Drokin Cc: Linux Kernel Mailing List , Lustre Development List , James Simmons Subject: [PATCH 0/6] cleanup libcfs memory handling Date: Thu, 31 Mar 2016 10:18:34 -0400 Message-Id: <1459433920-23644-1-git-send-email-jsimmons@infradead.org> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The libcfs module contains memory handling which needs to be cleaned up. First cleanup is to merge linux-mem.h and libcfs_prim.h. This is left over for when libcfs was both a kernel module and a userspace library. Second cleanup is remove some wrappers that are not needed. Just use kernel API's directly instead. One last change is the move of add_wait_queue_exclusive_head to the lustre layer since that is the only place it is used. With these changes linux-mem.h can be deleted. James Simmons (6): staging: lustre: libcfs: move add_wait_queue_exclusive_head to lustre layer staging: lustre: libcfs: move memory_pressure functions to libcfs_prim.h staging: lustre: libcfs: remove page_index() macro staging: lustre: libcfs: remove MMSPACE macros staging: lustre: libcfs: move NUM_CACHEPAGES to libcfs_prim.h staging: lustre: libcfs: delete linux-mem.h .../lustre/include/linux/libcfs/libcfs_prim.h | 31 +++++--- .../lustre/include/linux/libcfs/linux/libcfs.h | 2 +- .../lustre/include/linux/libcfs/linux/linux-cpu.h | 2 +- .../lustre/include/linux/libcfs/linux/linux-mem.h | 79 -------------------- .../staging/lustre/lnet/libcfs/linux/linux-prim.c | 24 ------ drivers/staging/lustre/lnet/libcfs/tracefile.c | 17 ++-- drivers/staging/lustre/lustre/include/lustre_lib.h | 22 ++++++ drivers/staging/lustre/lustre/llite/vvp_page.c | 2 +- drivers/staging/lustre/lustre/osc/osc_request.c | 2 +- 9 files changed, 55 insertions(+), 126 deletions(-) delete mode 100644 drivers/staging/lustre/include/linux/libcfs/linux/linux-mem.h