commit | a26a185d27b49e1656b335ef8ad1a32f7a0e7d7f | [log] [tgz] |
---|---|---|
author | Henry C Chang <henry.cy.chang@gmail.com> | Wed May 11 10:29:53 2011 +0000 |
committer | Sage Weil <sage@newdream.net> | Wed May 11 10:44:36 2011 -0700 |
tree | e3243ec1598355eee50887a2433d7cba1d9c43fc | |
parent | 7d8e18a69d9ebb8bf51748842929f8cc1ad61d49 [diff] |
ceph: fix list_add in ceph_put_snap_realm Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com> Signed-off-by: Sage Weil <sage@newdream.net>
diff --git a/fs/ceph/snap.c b/fs/ceph/snap.c index e86ec11..24067d6 100644 --- a/fs/ceph/snap.c +++ b/fs/ceph/snap.c
@@ -206,7 +206,7 @@ up_write(&mdsc->snap_rwsem); } else { spin_lock(&mdsc->snap_empty_lock); - list_add(&mdsc->snap_empty, &realm->empty_item); + list_add(&realm->empty_item, &mdsc->snap_empty); spin_unlock(&mdsc->snap_empty_lock); } }