]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
staging: lustre: discard lu_buf allocation library.
authorNeilBrown <neilb@suse.com>
Tue, 20 Feb 2018 02:23:37 +0000 (13:23 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:03:23 +0000 (15:03 +0100)
commitc23d6d0e54117212ed69da2a0b380187462cf0fd
treedf1aabd23aa2f00931568096c26c5c059a34a6c9
parent9a7383c13044a9d67d18ffc72b5d1d8eb0c7c6d2
staging: lustre: discard lu_buf allocation library.

This library code is unnecessarily generic, but also
not generic enough.  Library code that performs
allocations should always take a gfp_flags argument.

So discard the library and in the one file where it is used,
just use kzalloc or krealloc as needed.
In this context, it is clear that vmalloc is never needed.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lu_object.h
drivers/staging/lustre/lustre/llite/llite_lib.c
drivers/staging/lustre/lustre/obdclass/linkea.c
drivers/staging/lustre/lustre/obdclass/lu_object.c