mds: drop _do_open helper

only one caller
This commit is contained in:
Sage Weil 2009-01-30 10:07:06 -08:00
parent f49d8ac12b
commit 93e587ea7d
2 changed files with 0 additions and 15 deletions

View File

@ -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

View File

@ -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);