Commit 8bf66024 authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman

staging: lustre: libcfs: discard KLASSERT()

This appears to be intended for assertions that only make
sense in the kernel, but as this code is now kernel-only,
it doesn't make sense any more.
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c5c307dc
...@@ -74,8 +74,6 @@ do { \ ...@@ -74,8 +74,6 @@ do { \
# define LINVRNT(exp) ((void)sizeof !!(exp)) # define LINVRNT(exp) ((void)sizeof !!(exp))
#endif #endif
#define KLASSERT(e) LASSERT(e)
void __noreturn lbug_with_loc(struct libcfs_debug_msg_data *msg); void __noreturn lbug_with_loc(struct libcfs_debug_msg_data *msg);
#define LBUG() \ #define LBUG() \
......
...@@ -202,7 +202,7 @@ struct cl_page *cl_page_find(const struct lu_env *env, ...@@ -202,7 +202,7 @@ struct cl_page *cl_page_find(const struct lu_env *env,
* vmpage lock is used to protect the child/parent * vmpage lock is used to protect the child/parent
* relationship * relationship
*/ */
KLASSERT(PageLocked(vmpage)); LASSERT(PageLocked(vmpage));
/* /*
* cl_vmpage_page() can be called here without any locks as * cl_vmpage_page() can be called here without any locks as
* *
...@@ -340,7 +340,7 @@ struct cl_page *cl_vmpage_page(struct page *vmpage, struct cl_object *obj) ...@@ -340,7 +340,7 @@ struct cl_page *cl_vmpage_page(struct page *vmpage, struct cl_object *obj)
{ {
struct cl_page *page; struct cl_page *page;
KLASSERT(PageLocked(vmpage)); LASSERT(PageLocked(vmpage));
/* /*
* NOTE: absence of races and liveness of data are guaranteed by page * NOTE: absence of races and liveness of data are guaranteed by page
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment