From 84e835f1e67acb72c25820742a9e263f5df7176c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 19 Aug 2010 16:21:18 -0700 Subject: [PATCH] mds: fix intermediate snapped inode updates Pass head inode to pick_inode_snap! --- src/mds/Locker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index 4e84393c9c4..cf8f38b4099 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -1875,7 +1875,7 @@ void Locker::handle_client_caps(MClientCaps *m) dout(10) << " updating intermediate snapped inode " << *in << dendl; _do_cap_update(in, NULL, m->get_dirty(), follows, m, NULL); } - in = mdcache->pick_inode_snap(in, in->last); + in = mdcache->pick_inode_snap(head_in, in->last); } // head inode, and cap