aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/file.c
diff options
context:
space:
mode:
authorHenry C Chang <henry_c_chang@tcloudcomputing.com>2010-09-22 20:21:17 -0700
committerSage Weil <sage@newdream.net>2010-10-07 08:00:23 -0700
commit936aeb5c4a9fa799abd7d630a94223acedcaad50 (patch)
tree377c2b25d450975e928012c8d9b7c12214b62428 /fs/ceph/file.c
parentLinux 2.6.36-rc7 (diff)
downloadlinux-dev-936aeb5c4a9fa799abd7d630a94223acedcaad50.tar.xz
linux-dev-936aeb5c4a9fa799abd7d630a94223acedcaad50.zip
ceph: fix list_add usage on unsafe_writes list
Fix argument order. Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/file.c')
-rw-r--r--fs/ceph/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 8c044a4f0457..66e4da6dba22 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -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);
}