OSDN Git Service

vmw_balloon: handle commands in a single function.
authorNadav Amit <namit@vmware.com>
Thu, 20 Sep 2018 17:30:07 +0000 (10:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:11:42 +0000 (20:11 +0200)
commit10a95d5d86e1f65a1075ea2b5469cc8ef1f424c5
treec854c360fdd6949a7b1bbe2f2e32d7251727739d
parentbbbecc644a4fff76e8c89b9859701bdcde198d9c
vmw_balloon: handle commands in a single function.

By inlining the hypercall interface, we can unify several operations
into one central point in the code:

- Updating the target.
- Updating when a reset is needed.
- Update statistics (which will be done later in the patch-set).
- Print debug-messages (although they cannot be enabled as selectively).

Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com>
Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_balloon.c