fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / fs / afs / vnode.c
index e3e9611..cf62da5 100644 (file)
@@ -86,9 +86,9 @@ static void afs_vnode_cb_timed_out(struct afs_timer *timer)
  * - starts callback expiry timer
  * - adds to server's callback list
  */
-void afs_vnode_finalise_status_update(struct afs_vnode *vnode,
-                                     struct afs_server *server,
-                                     int ret)
+static void afs_vnode_finalise_status_update(struct afs_vnode *vnode,
+                                            struct afs_server *server,
+                                            int ret)
 {
        struct afs_server *oldserver = NULL;
 
@@ -104,8 +104,7 @@ void afs_vnode_finalise_status_update(struct afs_vnode *vnode,
                                        vnode->cb_expiry * HZ);
 
                spin_lock(&afs_cb_hash_lock);
-               list_del(&vnode->cb_hash_link);
-               list_add_tail(&vnode->cb_hash_link,
+               list_move_tail(&vnode->cb_hash_link,
                              &afs_cb_hash(server, &vnode->fid));
                spin_unlock(&afs_cb_hash_lock);