Lines Matching refs:oplock

178 	     struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock,
242 rc = server->ops->open(xid, &oparms, oplock, buf);
294 struct tcon_link *tlink, __u32 oplock)
333 * If the server returned a read oplock and we have mandatory brlocks,
334 * set oplock level to None.
336 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) {
337 cifs_dbg(FYI, "Reset oplock val from read to None due to mand locks\n");
338 oplock = 0;
346 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock)
347 oplock = fid->pending_open->oplock;
351 server->ops->set_fid(cfile, fid, oplock);
419 * Always potentially wait for oplock handler. See _cifsFileInfo_put().
434 * reference, wait for any running oplock break handler of the file
436 * oplock break handler, you need to pass false.
480 * again and get at least level II oplock.
521 __u32 oplock;
561 oplock = REQ_OPLOCK;
563 oplock = 0;
571 file->f_flags, &oplock, &fid.netfid, xid);
600 file->f_flags, &oplock, &fid, xid);
607 cfile = cifs_new_fileinfo(&fid, file, tlink, oplock);
618 if ((oplock & CIFS_CREATE_ACTION) && !posix_open_ok && tcon->unix_ext) {
680 __u32 oplock;
724 oplock = REQ_OPLOCK;
726 oplock = 0;
740 oflags, &oplock, &cfile->fid.netfid, xid);
780 rc = server->ops->open(xid, &oparms, &oplock, NULL);
783 rc = server->ops->open(xid, &oparms, &oplock, NULL);
791 cifs_dbg(FYI, "oplock: %d\n", oplock);
822 * If the server returned a read oplock and we have mandatory brlocks,
823 * set oplock level to None.
825 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) {
826 cifs_dbg(FYI, "Reset oplock val from read to None due to mand locks\n");
827 oplock = 0;
830 server->ops->set_fid(cfile, &cfile->fid, oplock);
1693 cifs_dbg(FYI, "Set no oplock for inode=%p due to mand locks\n",
1695 CIFS_I(inode)->oplock = 0;
3333 * Zap the cache and set oplock/lease level to NONE to avoid
3340 cinode->oplock = 0;
4015 * if we don't have level II oplock because the server can delay mtime
4690 * optimize away the read when we have an oplock, and we're not
4791 cifs_dbg(FYI, "Reset oplock to None for inode=%p due to mand locks\n",
4793 cinode->oplock = 0;
4818 * releasing stale oplock after recent reconnect of smb session using
4820 * not bother sending an oplock release if session to server still is
4821 * disconnected since oplock already released by the server