library: repair any broken stuff found during refactor
Rather than offer three separate patches, they've been consolidated in this single commit. All are related in that they surfaced while preparing a subsequent patch. ------------------------------------------------------ library: correct a broken '#if define', <SLABINFO> api It was introduced (embarrassingly) in the patch below. Reference(s): commit97d078a9af
------------------------------------------------------ library: correct a broken 'GET' macro, <DISKSTATS> api In the patch referenced below, which purported to make all the 'GET' macros robust, the 'DISKSTATS_GET' macro was broken. A necessary parameter wasn't passed to the subsequently invoked function: procps_diskstats_get(). Reference(s): commitbef8c7fb70
------------------------------------------------------ library: correct a broken 'sort' func, <DISKSTATS> api In the commit shown below, an attempt to normalize the errno handling, the sort function inadvertently lost 1 crucial line of code which produces a consistent SEGV. Reference(s): commit06be33b43e
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -91,7 +91,7 @@ struct diskstats_reap {
|
||||
#define DISKSTATS_TYPE_PARTITION -22222
|
||||
|
||||
#define DISKSTATS_GET( info, name, actual_enum, type ) ( { \
|
||||
struct diskstats_result *r = procps_diskstats_get( info, actual_enum ); \
|
||||
struct diskstats_result *r = procps_diskstats_get( info, name, actual_enum ); \
|
||||
r ? r->result . type : 0; } )
|
||||
|
||||
#define DISKSTATS_VAL( relative_enum, type, stack, info ) \
|
||||
|
Reference in New Issue
Block a user