Lines Matching defs:oplock

342 			struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock,
408 rc = server->ops->open(xid, &oparms, oplock, buf);
465 struct tcon_link *tlink, __u32 oplock,
517 * If the server returned a read oplock and we have mandatory brlocks,
518 * set oplock level to None.
520 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) {
521 cifs_dbg(FYI, "Reset oplock val from read to None due to mand locks\n");
522 oplock = 0;
530 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock)
531 oplock = fid->pending_open->oplock;
535 server->ops->set_fid(cfile, fid, oplock);
638 * Always potentially wait for oplock handler. See _cifsFileInfo_put().
655 * reference, wait for any running oplock break handler of the file
660 * @offload: not offloaded on close and oplock breaks
707 * again and get at least level II oplock.
760 __u32 oplock;
822 oplock = REQ_OPLOCK;
824 oplock = 0;
833 file->f_flags, &oplock, &fid.netfid, xid);
862 rc = cifs_nt_open(full_path, inode, cifs_sb, tcon, file->f_flags, &oplock, &fid,
870 cfile = cifs_new_fileinfo(&fid, file, tlink, oplock, data.symlink_target);
880 if ((oplock & CIFS_CREATE_ACTION) && !posix_open_ok && tcon->unix_ext) {
959 __u32 oplock;
1005 oplock = REQ_OPLOCK;
1007 oplock = 0;
1022 oflags, &oplock, &cfile->fid.netfid, xid);
1070 rc = server->ops->open(xid, &oparms, &oplock, NULL);
1073 rc = server->ops->open(xid, &oparms, &oplock, NULL);
1086 cifs_dbg(FYI, "oplock: %d\n", oplock);
1124 * If the server returned a read oplock and we have mandatory brlocks,
1125 * set oplock level to None.
1127 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) {
1128 cifs_dbg(FYI, "Reset oplock val from read to None due to mand locks\n");
1129 oplock = 0;
1132 server->ops->set_fid(cfile, &cfile->fid, oplock);
1161 (cinode->oplock == CIFS_CACHE_RHW_FLG ||
1162 cinode->oplock == CIFS_CACHE_RH_FLG) &&
2071 cifs_dbg(FYI, "Set no oplock for inode=%p due to mand locks\n",
2073 CIFS_I(inode)->oplock = 0;
3910 * Zap the cache and set oplock/lease level to NONE to avoid
3917 cinode->oplock = 0;
4382 * if we don't have level II oplock because the server can delay mtime
4880 ((cifsInode->oplock & CIFS_CACHE_RW_FLG) != 0 && from_readdir)) {
4932 * optimize away the read when we have an oplock, and we're not
5045 cifs_dbg(FYI, "Reset oplock to None for inode=%p due to mand locks\n",
5047 cinode->oplock = 0;
5072 * When oplock break is received and there are no active