summaryrefslogtreecommitdiffstats
path: root/fs/ceph
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
parentcb655d0f3d57c23db51b981648e452988c0223f9 (diff)
downloadop-kernel-dev-936aeb5c4a9fa799abd7d630a94223acedcaad50.zip
op-kernel-dev-936aeb5c4a9fa799abd7d630a94223acedcaad50.tar.gz
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')
-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 8c044a4..66e4da6 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);
}
OpenPOWER on IntegriCloud