From: Sage Weil Date: Fri, 30 Jan 2009 18:07:06 +0000 (-0800) Subject: mds: drop _do_open helper X-Git-Tag: v0.7~244 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=93e587ea7d337c21053e3069333d6d711b9fbc5e;p=ceph.git mds: drop _do_open helper only one caller --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index a08a30b76fb5..742692e961fc 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -4952,26 +4952,12 @@ void Server::handle_client_open(MDRequest *mdr) if (!mds->locker->acquire_locks(mdr, rdlocks, wrlocks, xlocks)) return; } - - // do it - _do_open(mdr, cur); -} -void Server::_do_open(MDRequest *mdr, CInode *cur) -{ - MClientRequest *req = mdr->client_request; - int cmode = ceph_flags_to_mode(req->head.args.open.flags); - if (cur->inode.is_dir()) - cmode = CEPH_FILE_MODE_PIN; if (mdr->ref_snapid == CEPH_NOSNAP) { // register new cap bool is_new = false; Capability *cap = mds->locker->issue_new_caps(cur, cmode, mdr->session, is_new); - - // drop our locks (they may interfere with us issuing new caps) - //mdcache->request_drop_locks(mdr); - if (is_new) cap->dec_suppress(); // stop suppressing messages on new cap diff --git a/src/mds/Server.h b/src/mds/Server.h index ef6b566c2382..d6c6eb745e1c 100644 --- a/src/mds/Server.h +++ b/src/mds/Server.h @@ -124,7 +124,6 @@ public: void handle_client_open(MDRequest *mdr); void handle_client_openc(MDRequest *mdr); // O_CREAT variant. void handle_client_opent(MDRequest *mdr); // O_TRUNC variant. - void _do_open(MDRequest *mdr, CInode *ref); // namespace changes void handle_client_mknod(MDRequest *mdr);