Re: [PATCH 04/10] util: Avoid needless preprocessor conditionals in virresctrl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 07, 2018 at 03:54:25PM +0200, Martin Kletzander wrote:
By exporting virResctrlAllocMasksAssign() we can remove most of the
conditionals.  And that function should be used from the tests later anyway.


I fail to see the relevance of exporting virResctrlAllocMasksAssign in
this patch or series.

The conditionals removed here can be removed because the functions
do not contain Linux-specific code, the d_type access was removed by:
f2e16994f7d660a54daba1059441dc0dcf4d9cbd
   util: Don't check if entries under /sys/fs/resctrl/(info/) are directories


Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
src/libvirt_private.syms  |  1 +
src/util/virresctrl.c     | 30 +-----------------------------
src/util/virresctrlpriv.h |  4 ++++
3 files changed, 6 insertions(+), 29 deletions(-)


If you drop the virResctrlAllocMasksAssign-related hunks:

Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux