staging: lustre: remove CFS_DECL_WAITQ() macro
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2013 00:39:49 +0000 (08:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2013 00:39:49 +0000 (08:39 +0800)
Just use DECLARE_WAIT_QUEUE_HEAD() instead.

Cc: Peng Tao <tao.peng@emc.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/linux/linux-prim.h
drivers/staging/lustre/lustre/osc/osc_page.c

index f0184e6eb1883f2b16339c86ebca4e2114f8e506..4b84feef05e2c5aff8629116834eb676b66636be 100644 (file)
@@ -88,12 +88,8 @@ typedef struct proc_dir_entry           proc_dir_entry_t;
 /*
  * Wait Queue
  */
-
-
 typedef long                       cfs_task_state_t;
 
-#define CFS_DECL_WAITQ(wq)             DECLARE_WAIT_QUEUE_HEAD(wq)
-
 /*
  * Task struct
  */
index 159dda07f43a5a7c00fa7009c068d1ac6515b0e3..d272322b29b6618ddad867720ae8be6c0b5825c2 100644 (file)
@@ -582,7 +582,7 @@ void osc_page_submit(const struct lu_env *env, struct osc_page *opg,
  * at any time.
  */
 
-static CFS_DECL_WAITQ(osc_lru_waitq);
+static DECLARE_WAIT_QUEUE_HEAD(osc_lru_waitq);
 static atomic_t osc_lru_waiters = ATOMIC_INIT(0);
 /* LRU pages are freed in batch mode. OSC should at least free this
  * number of pages to avoid running out of LRU budget, and.. */