Lines Matching defs:ofile
135 smb_oplock_acquire(smb_request_t *sr, smb_node_t *node, smb_ofile_t *ofile)
145 SMB_OFILE_VALID(ofile);
147 ASSERT(node == SMB_OFILE_GET_NODE(ofile));
151 tree = SMB_OFILE_GET_TREE(ofile);
152 session = SMB_OFILE_GET_SESSION(ofile);
182 smb_vop_other_opens(node->vp, ofile->f_mode)) {
202 og = smb_oplock_set_grant(ofile, op->op_oplock_level);
405 smb_ofile_t *ofile;
408 * Make sure we can get a hold on the ofile. If we can't,
416 ofile = og->og_ofile;
417 if (!smb_ofile_hold(ofile))
419 smb_tree_hold_internal(ofile->f_tree);
420 smb_user_hold_internal(ofile->f_user);
425 sr->fid_ofile = ofile;
426 sr->tid_tree = ofile->f_tree;
427 sr->uid_user = ofile->f_user;
441 * We have a hold on the ofile, which keeps the FID here valid.
543 * Release the oplock granted on ofile 'of'.
546 * This is called when the ofile is being closed.
575 * Process oplock acknowledgement received for ofile 'of'.
781 * Find oplock grant corresponding to the specified ofile.
784 smb_oplock_get_grant(smb_oplock_t *ol, smb_ofile_t *ofile)
788 if (SMB_OFILE_OPLOCK_GRANTED(ofile))
789 return (&ofile->f_oplock_grant);