ceph: fix list_add usage on unsafe_writes list
authorHenry C Chang <henry_c_chang@tcloudcomputing.com>
Thu, 23 Sep 2010 03:21:17 +0000 (20:21 -0700)
committerSage Weil <sage@newdream.net>
Thu, 7 Oct 2010 15:00:23 +0000 (08:00 -0700)
Fix argument order.

Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/file.c

index 8c044a4f045751c62420e67664705f981efe238a..66e4da6dba229716ff3349fe87f5dfe62fe62db1 100644 (file)
@@ -697,7 +697,7 @@ more:
                         * start_request so that a tid has been assigned.
                         */
                        spin_lock(&ci->i_unsafe_lock);
-                       list_add(&ci->i_unsafe_writes, &req->r_unsafe_item);
+                       list_add(&req->r_unsafe_item, &ci->i_unsafe_writes);
                        spin_unlock(&ci->i_unsafe_lock);
                        ceph_get_cap_refs(ci, CEPH_CAP_FILE_WR);
                }