/* logical equivalence */
#define equi(a, b) (!!(a) == !!(b))
-#ifndef CFS_CURRENT_TIME
-# define CFS_CURRENT_TIME time(0)
-#endif
-
/* what used to be in portals_lib.h */
#ifndef MIN
# define MIN(a,b) (((a)<(b)) ? (a): (b))
return cfs_size_round(strlen(fset) + 1);
}
-/* roundup \a val to power2 */
-static inline size_t cfs_power2_roundup(size_t val)
-{
- if (val != LOWEST_BIT_SET(val)) { /* not a power of 2 already */
- do {
- val &= ~LOWEST_BIT_SET(val);
- } while (val != LOWEST_BIT_SET(val));
- /* ...and round up */
- val <<= 1;
- }
- return val;
-}
-
#define LOGL(var,len,ptr) \
do { \
if (var) \
extern struct miscdevice libcfs_dev;
extern struct cfs_wi_sched *cfs_sched_rehash;
-extern int insert_proc(void);
-extern void remove_proc(void);
-
#endif