Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 936aeb5c authored by Henry C Chang's avatar Henry C Chang Committed by Sage Weil
Browse files

ceph: fix list_add usage on unsafe_writes list



Fix argument order.

Signed-off-by: default avatarHenry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent cb655d0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -697,7 +697,7 @@ static ssize_t ceph_sync_write(struct file *file, const char __user *data,
			 * 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);
		}