#define LASSERTF(cond, fmt...) ((void)(0))
#endif /* LIBCFS_DEBUG */
+#define KLASSERT(e) LASSERT(e)
+
void lbug_with_loc(char *file, const char *func, const int line)
__attribute__((noreturn));
# define LASSERTF(cond, args...) do { } while (0)
# define LBUG() ((void)(0))
# endif /* LIBCFS_DEBUG */
+# define KLASSERT(e) do { } while (0)
# define printk(format, args...) printf (format, ## args)
# ifdef CRAY_XT3 /* buggy calloc! */
# define LIBCFS_ALLOC(ptr, size) \
#define init_mutex_locked(x) init_MUTEX_LOCKED(x)
#define mutex_up(x) up(x)
#define mutex_down(x) down(x)
+#define mutex_down_trylock(x) down_trylock(x)
/*
* completion (use Linux kernel's primitives)
int cfs_waitq_active(struct cfs_waitq *waitq);
void cfs_waitq_signal(struct cfs_waitq *waitq);
void cfs_waitq_signal_nr(struct cfs_waitq *waitq, int nr);
-void cfs_waitq_broadcast(struct cfs_waitq *waitq, int state);
-void cfs_waitq_wait(struct cfs_waitlink *link);
+void cfs_waitq_broadcast(struct cfs_waitq *waitq);
+void cfs_waitq_wait(struct cfs_waitlink *link, int state);
int64_t cfs_waitq_timedwait(struct cfs_waitlink *link, int state, int64_t timeout);
#define cfs_schedule_timeout(s, t) \
do { \
#ifdef LIBLUSTRE_HANDLE_UNALIGNED_PAGE
int _managed;
#endif
+ struct list_head _node;
};
typedef struct page cfs_page_t;
(remainder); \
})
-
/* !__KERNEL__ */
#endif
(void)waitq;
}
-void cfs_waitq_broadcast(struct cfs_waitq *waitq, int state)
+void cfs_waitq_broadcast(struct cfs_waitq *waitq)
{
LASSERT(waitq != NULL);
(void)waitq;
}
-void cfs_waitq_wait(struct cfs_waitlink *link)
+void cfs_waitq_wait(struct cfs_waitlink *link, int state)
{
LASSERT(link != NULL);
(void)link;
abort();
}
-
/* !__KERNEL__ */
#endif