]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: allow cap updates to root inode
authorSage Weil <sage@newdream.net>
Thu, 4 Jun 2009 20:18:45 +0000 (13:18 -0700)
committerSage Weil <sage@newdream.net>
Thu, 4 Jun 2009 20:47:03 +0000 (13:47 -0700)
src/mds/Locker.cc

index 683040fcf0588c036fa2ebd801f1cc6632efabe0..6a03e3b72061655717712f4c030fe48988793c8a 100644 (file)
@@ -1767,14 +1767,12 @@ bool Locker::_do_cap_update(CInode *in, Capability *cap,
 {
   dout(10) << "_do_cap_update dirty " << ccap_string(dirty)
           << " wanted " << ccap_string(wanted)
+          << " max_size " << m->get_max_size()
           << " on " << *in << dendl;
   assert(in->is_auth());
   int client = m->get_source().num();
   inode_t *latest = in->get_projected_inode();
 
-  if (in->is_root())
-    return false;   // FIXME?
-
   // increase or zero max_size?
   __u64 size = m->get_size();
   bool change_max = false;