X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_internal.h;h=e08d8935f8aab90b966810d77218d92e102e583a;hp=8dbd59363f95486b3089faf53489d5ce4a7a450b;hb=2cb7eb3bb65398368fc934e6cc4483ee6c331d45;hpb=45a64335d0e326a411fe6a68cce77e618924f59f diff --git a/lustre/osc/osc_internal.h b/lustre/osc/osc_internal.h index 8dbd593..e08d893 100644 --- a/lustre/osc/osc_internal.h +++ b/lustre/osc/osc_internal.h @@ -142,10 +142,10 @@ static inline char *cli_name(struct client_obd *cli) return cli->cl_import->imp_obd->obd_name; } -#ifndef min_t -#define min_t(type,x,y) \ - ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) -#endif +static inline char list_empty_marker(struct list_head *list) +{ + return list_empty(list) ? '-' : '+'; +} struct osc_async_args { struct obd_info *aa_oi;