diff mbox

[2/3] ceph: fix list_add in ceph_put_snap_realm

Message ID 1305109794-7967-2-git-send-email-henry.cy.chang@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Henry Chang May 11, 2011, 10:29 a.m. UTC
Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com>
---
 fs/ceph/snap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

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 @@  void ceph_put_snap_realm(struct ceph_mds_client *mdsc,
 		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);
 	}
 }