]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/lustre/ldlm: Make ldlm_add_ast_work_item() static
authorOleg Drokin <green@linuxhacker.ru>
Thu, 1 Oct 2015 04:12:42 +0000 (00:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:17:19 +0000 (11:17 +0200)
Now that ldlm_flock code no longer uses it.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_internal.h
drivers/staging/lustre/lustre/ldlm/ldlm_lock.c

index 6cf3f9f9ee2181d2b43ebc37dbf5161433809c7f..db3c9b7af7d50d4ace790e606f3f5000e1aa9485 100644 (file)
@@ -142,8 +142,6 @@ void ldlm_lock_addref_internal(struct ldlm_lock *, __u32 mode);
 void ldlm_lock_addref_internal_nolock(struct ldlm_lock *, __u32 mode);
 void ldlm_lock_decref_internal(struct ldlm_lock *, __u32 mode);
 void ldlm_lock_decref_internal_nolock(struct ldlm_lock *, __u32 mode);
-void ldlm_add_ast_work_item(struct ldlm_lock *lock, struct ldlm_lock *new,
-                           struct list_head *work_list);
 int ldlm_run_ast_work(struct ldlm_namespace *ns, struct list_head *rpc_list,
                      enum ldlm_desc_ast_t ast_type);
 int ldlm_lock_remove_from_lru(struct ldlm_lock *lock);
index 0ba1ac37d9bc58215fe00462deb095fb2934f855..f39375c247734f2b427fd5e5a27320a8639cc965 100644 (file)
@@ -644,8 +644,9 @@ static void ldlm_add_cp_work_item(struct ldlm_lock *lock,
  * adding function.
  * Must be called with lr_lock held.
  */
-void ldlm_add_ast_work_item(struct ldlm_lock *lock, struct ldlm_lock *new,
-                           struct list_head *work_list)
+static void ldlm_add_ast_work_item(struct ldlm_lock *lock,
+                                  struct ldlm_lock *new,
+                                  struct list_head *work_list)
 {
        check_res_locked(lock->l_resource);
        if (new)