oplock           1057 fs/cifs/cifsacl.c 	int oplock = 0;
oplock           1083 fs/cifs/cifsacl.c 	rc = CIFS_open(xid, &oparms, &oplock, NULL);
oplock           1120 fs/cifs/cifsacl.c 	int oplock = 0;
oplock           1152 fs/cifs/cifsacl.c 	rc = CIFS_open(xid, &oparms, &oplock, NULL);
oplock            915 fs/cifs/cifsfs.c 			cinode->oplock = 0;
oplock            440 fs/cifs/cifsglob.h 	char * (*create_lease_buf)(u8 *lease_key, u8 oplock);
oplock           1176 fs/cifs/cifsglob.h 	__u32 oplock;
oplock           1386 fs/cifs/cifsglob.h #define CIFS_CACHE_READ(cinode) ((cinode->oplock & CIFS_CACHE_READ_FLG) || (CIFS_SB(cinode->vfs_inode.i_sb)->mnt_cifs_flags & CIFS_MOUNT_RO_CACHE))
oplock           1387 fs/cifs/cifsglob.h #define CIFS_CACHE_HANDLE(cinode) (cinode->oplock & CIFS_CACHE_HANDLE_FLG)
oplock           1388 fs/cifs/cifsglob.h #define CIFS_CACHE_WRITE(cinode) ((cinode->oplock & CIFS_CACHE_WRITE_FLG) || (CIFS_SB(cinode->vfs_inode.i_sb)->mnt_cifs_flags & CIFS_MOUNT_RW_CACHE))
oplock           1407 fs/cifs/cifsglob.h 	unsigned int oplock;		/* oplock/lease level we have */
oplock            166 fs/cifs/cifsproto.h extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock);
oplock            178 fs/cifs/cifsproto.h 					      __u32 oplock);
oplock            181 fs/cifs/cifsproto.h 			   unsigned int f_flags, __u32 *oplock, __u16 *netfid,
oplock            417 fs/cifs/cifsproto.h 		     int *oplock, FILE_ALL_INFO *buf);
oplock           1394 fs/cifs/cifssmb.c CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock,
oplock           1438 fs/cifs/cifssmb.c 	if (*oplock & REQ_OPLOCK)
oplock           1440 fs/cifs/cifssmb.c 	else if (*oplock & REQ_BATCHOPLOCK)
oplock           1489 fs/cifs/cifssmb.c 	*oplock = rsp->OplockLevel;
oplock           1497 fs/cifs/cifssmb.c 		*oplock |= CIFS_CREATE_ACTION;
oplock            228 fs/cifs/dir.c  	       __u32 *oplock, struct cifs_fid *fid)
oplock            242 fs/cifs/dir.c  	*oplock = 0;
oplock            244 fs/cifs/dir.c  		*oplock = REQ_OPLOCK;
oplock            256 fs/cifs/dir.c  				     oflags, oplock, &fid->netfid, xid);
oplock            372 fs/cifs/dir.c  	rc = server->ops->open(xid, &oparms, oplock, buf);
oplock            382 fs/cifs/dir.c  	if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) {
oplock            426 fs/cifs/dir.c  			if ((*oplock & CIFS_CREATE_ACTION) &&
oplock            476 fs/cifs/dir.c  	__u32 oplock;
oplock            532 fs/cifs/dir.c  			    &oplock, &fid);
oplock            558 fs/cifs/dir.c  	file_info = cifs_new_fileinfo(&fid, file, tlink, oplock);
oplock            590 fs/cifs/dir.c  	__u32 oplock;
oplock            607 fs/cifs/dir.c  			    &oplock, &fid);
oplock            177 fs/cifs/file.c 	     struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock,
oplock            244 fs/cifs/file.c 	rc = server->ops->open(xid, &oparms, oplock, buf);
oplock            295 fs/cifs/file.c 		  struct tcon_link *tlink, __u32 oplock)
oplock            337 fs/cifs/file.c 	if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) {
oplock            339 fs/cifs/file.c 		oplock = 0;
oplock            347 fs/cifs/file.c 	if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock)
oplock            348 fs/cifs/file.c 		oplock = fid->pending_open->oplock;
oplock            352 fs/cifs/file.c 	server->ops->set_fid(cfile, fid, oplock);
oplock            520 fs/cifs/file.c 	__u32 oplock;
oplock            560 fs/cifs/file.c 		oplock = REQ_OPLOCK;
oplock            562 fs/cifs/file.c 		oplock = 0;
oplock            570 fs/cifs/file.c 				file->f_flags, &oplock, &fid.netfid, xid);
oplock            599 fs/cifs/file.c 				  file->f_flags, &oplock, &fid, xid);
oplock            606 fs/cifs/file.c 	cfile = cifs_new_fileinfo(&fid, file, tlink, oplock);
oplock            617 fs/cifs/file.c 	if ((oplock & CIFS_CREATE_ACTION) && !posix_open_ok && tcon->unix_ext) {
oplock            679 fs/cifs/file.c 	__u32 oplock;
oplock            723 fs/cifs/file.c 		oplock = REQ_OPLOCK;
oplock            725 fs/cifs/file.c 		oplock = 0;
oplock            739 fs/cifs/file.c 				     oflags, &oplock, &cfile->fid.netfid, xid);
oplock            782 fs/cifs/file.c 	rc = server->ops->open(xid, &oparms, &oplock, NULL);
oplock            785 fs/cifs/file.c 		rc = server->ops->open(xid, &oparms, &oplock, NULL);
oplock            793 fs/cifs/file.c 		cifs_dbg(FYI, "oplock: %d\n", oplock);
oplock            825 fs/cifs/file.c 	if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) {
oplock            827 fs/cifs/file.c 		oplock = 0;
oplock            830 fs/cifs/file.c 	server->ops->set_fid(cfile, &cfile->fid, oplock);
oplock           1702 fs/cifs/file.c 			CIFS_I(inode)->oplock = 0;
oplock           3260 fs/cifs/file.c 		cinode->oplock = 0;
oplock           4689 fs/cifs/file.c 		cinode->oplock = 0;
oplock            442 fs/cifs/inode.c 	__u32 oplock;
oplock            484 fs/cifs/inode.c 		oplock = REQ_OPLOCK;
oplock            486 fs/cifs/inode.c 		oplock = 0;
oplock            487 fs/cifs/inode.c 	rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
oplock           1195 fs/cifs/inode.c 	int oplock = 0;
oplock           1230 fs/cifs/inode.c 	rc = CIFS_open(xid, &oparms, &oplock, NULL);
oplock           1522 fs/cifs/inode.c 	u32 oplock = 0;
oplock           1535 fs/cifs/inode.c 			     NULL /* netfid */, info, &oplock, full_path,
oplock           1728 fs/cifs/inode.c 	int oplock, rc;
oplock           1768 fs/cifs/inode.c 	rc = CIFS_open(xid, &oparms, &oplock, NULL);
oplock            308 fs/cifs/link.c 	int oplock = 0;
oplock            324 fs/cifs/link.c 	rc = CIFS_open(xid, &oparms, &oplock, &file_info);
oplock            352 fs/cifs/link.c 	int oplock = 0;
oplock            370 fs/cifs/link.c 	rc = CIFS_open(xid, &oparms, &oplock, NULL);
oplock            399 fs/cifs/link.c 	__u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock            424 fs/cifs/link.c 	rc = SMB2_open(xid, &oparms, utf16_path, &oplock, pfile_info, NULL,
oplock            462 fs/cifs/link.c 	__u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock            482 fs/cifs/link.c 	rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL,
oplock            551 fs/cifs/misc.c void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock)
oplock            553 fs/cifs/misc.c 	oplock &= 0xF;
oplock            555 fs/cifs/misc.c 	if (oplock == OPLOCK_EXCLUSIVE) {
oplock            556 fs/cifs/misc.c 		cinode->oplock = CIFS_CACHE_WRITE_FLG | CIFS_CACHE_READ_FLG;
oplock            559 fs/cifs/misc.c 	} else if (oplock == OPLOCK_READ) {
oplock            560 fs/cifs/misc.c 		cinode->oplock = CIFS_CACHE_READ_FLG;
oplock            564 fs/cifs/misc.c 		cinode->oplock = 0;
oplock            666 fs/cifs/misc.c 	open->oplock = CIFS_OPLOCK_NO_CHANGE;
oplock            563 fs/cifs/smb1ops.c 		int oplock = 0;
oplock            577 fs/cifs/smb1ops.c 		tmprc = CIFS_open(xid, &oparms, &oplock, NULL);
oplock            699 fs/cifs/smb1ops.c 	       __u32 *oplock, FILE_ALL_INFO *buf)
oplock            706 fs/cifs/smb1ops.c 				     &oparms->fid->netfid, oplock, buf,
oplock            709 fs/cifs/smb1ops.c 	return CIFS_open(xid, oparms, oplock, buf);
oplock            713 fs/cifs/smb1ops.c cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock)
oplock            717 fs/cifs/smb1ops.c 	cifs_set_oplock_level(cinode, oplock);
oplock            758 fs/cifs/smb1ops.c 	int oplock = 0;
oplock            805 fs/cifs/smb1ops.c 	rc = CIFS_open(xid, &oparms, &oplock, NULL);
oplock            948 fs/cifs/smb1ops.c 	int oplock = 0;
oplock            981 fs/cifs/smb1ops.c 	rc = CIFS_open(xid, &oparms, &oplock, NULL);
oplock           1000 fs/cifs/smb1ops.c cifs_is_read_op(__u32 oplock)
oplock           1002 fs/cifs/smb1ops.c 	return oplock == OPLOCK_READ;
oplock           1037 fs/cifs/smb1ops.c 	__u32 oplock = 0;
oplock           1108 fs/cifs/smb1ops.c 		oplock = REQ_OPLOCK;
oplock           1110 fs/cifs/smb1ops.c 		oplock = 0;
oplock           1111 fs/cifs/smb1ops.c 	rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf);
oplock             39 fs/cifs/smb2file.c 	       __u32 *oplock, FILE_ALL_INFO *buf)
oplock            109 fs/cifs/smb2file.c 	*oplock = smb2_oplock;
oplock             59 fs/cifs/smb2inode.c 	__u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock            111 fs/cifs/smb2inode.c 	rc = SMB2_open_init(tcon, &rqst[num_rqst], &oplock, &oparms,
oplock            581 fs/cifs/smb2misc.c 		open->oplock = lease_state;
oplock            644 fs/cifs/smb2ops.c 	u8 oplock = SMB2_OPLOCK_LEVEL_II;
oplock            688 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, &utf16_path);
oplock            772 fs/cifs/smb2ops.c 				oparms.fid->lease_key, &oplock, NULL);
oplock            801 fs/cifs/smb2ops.c 	u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock            814 fs/cifs/smb2ops.c 		rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL,
oplock            843 fs/cifs/smb2ops.c 	u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock            854 fs/cifs/smb2ops.c 	rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, NULL);
oplock            871 fs/cifs/smb2ops.c 	__u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock            892 fs/cifs/smb2ops.c 	rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL);
oplock           1088 fs/cifs/smb2ops.c 	__u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock           1170 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, utf16_path);
oplock           1339 fs/cifs/smb2ops.c smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock)
oplock           1350 fs/cifs/smb2ops.c 	server->ops->set_oplock_level(cinode, oplock, fid->epoch,
oplock           1413 fs/cifs/smb2ops.c 	u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock           1484 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, path);
oplock           2035 fs/cifs/smb2ops.c 	__u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock           2052 fs/cifs/smb2ops.c 	rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL);
oplock           2230 fs/cifs/smb2ops.c 	u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock           2256 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, utf16_path);
oplock           2349 fs/cifs/smb2ops.c 	u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock           2363 fs/cifs/smb2ops.c 	rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, NULL);
oplock           2608 fs/cifs/smb2ops.c 	__u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock           2665 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, utf16_path);
oplock           2824 fs/cifs/smb2ops.c 	u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock           2858 fs/cifs/smb2ops.c 	rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL);
oplock           2879 fs/cifs/smb2ops.c 	u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock           2920 fs/cifs/smb2ops.c 	rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL);
oplock           3341 fs/cifs/smb2ops.c smb2_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock,
oplock           3344 fs/cifs/smb2ops.c 	oplock &= 0xFF;
oplock           3345 fs/cifs/smb2ops.c 	if (oplock == SMB2_OPLOCK_LEVEL_NOCHANGE)
oplock           3347 fs/cifs/smb2ops.c 	if (oplock == SMB2_OPLOCK_LEVEL_BATCH) {
oplock           3348 fs/cifs/smb2ops.c 		cinode->oplock = CIFS_CACHE_RHW_FLG;
oplock           3351 fs/cifs/smb2ops.c 	} else if (oplock == SMB2_OPLOCK_LEVEL_EXCLUSIVE) {
oplock           3352 fs/cifs/smb2ops.c 		cinode->oplock = CIFS_CACHE_RW_FLG;
oplock           3355 fs/cifs/smb2ops.c 	} else if (oplock == SMB2_OPLOCK_LEVEL_II) {
oplock           3356 fs/cifs/smb2ops.c 		cinode->oplock = CIFS_CACHE_READ_FLG;
oplock           3360 fs/cifs/smb2ops.c 		cinode->oplock = 0;
oplock           3364 fs/cifs/smb2ops.c smb21_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock,
oplock           3370 fs/cifs/smb2ops.c 	oplock &= 0xFF;
oplock           3371 fs/cifs/smb2ops.c 	if (oplock == SMB2_OPLOCK_LEVEL_NOCHANGE)
oplock           3375 fs/cifs/smb2ops.c 	if (oplock & SMB2_OPLOCK_LEVEL_EXCLUSIVE)
oplock           3376 fs/cifs/smb2ops.c 		return smb2_set_oplock_level(cinode, oplock, epoch,
oplock           3379 fs/cifs/smb2ops.c 	if (oplock & SMB2_LEASE_READ_CACHING_HE) {
oplock           3383 fs/cifs/smb2ops.c 	if (oplock & SMB2_LEASE_HANDLE_CACHING_HE) {
oplock           3387 fs/cifs/smb2ops.c 	if (oplock & SMB2_LEASE_WRITE_CACHING_HE) {
oplock           3394 fs/cifs/smb2ops.c 	cinode->oplock = new_oplock;
oplock           3400 fs/cifs/smb2ops.c smb3_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock,
oplock           3403 fs/cifs/smb2ops.c 	unsigned int old_oplock = cinode->oplock;
oplock           3405 fs/cifs/smb2ops.c 	smb21_set_oplock_level(cinode, oplock, epoch, purge_cache);
oplock           3410 fs/cifs/smb2ops.c 			if (cinode->oplock == CIFS_CACHE_READ_FLG &&
oplock           3413 fs/cifs/smb2ops.c 			else if (cinode->oplock == CIFS_CACHE_RH_FLG &&
oplock           3416 fs/cifs/smb2ops.c 			else if (cinode->oplock == CIFS_CACHE_RHW_FLG &&
oplock           3419 fs/cifs/smb2ops.c 			else if (cinode->oplock == 0 &&
oplock           3423 fs/cifs/smb2ops.c 			if (cinode->oplock == CIFS_CACHE_RH_FLG &&
oplock           3426 fs/cifs/smb2ops.c 			else if (cinode->oplock == CIFS_CACHE_RHW_FLG &&
oplock           3435 fs/cifs/smb2ops.c smb2_is_read_op(__u32 oplock)
oplock           3437 fs/cifs/smb2ops.c 	return oplock == SMB2_OPLOCK_LEVEL_II;
oplock           3441 fs/cifs/smb2ops.c smb21_is_read_op(__u32 oplock)
oplock           3443 fs/cifs/smb2ops.c 	return (oplock & SMB2_LEASE_READ_CACHING_HE) &&
oplock           3444 fs/cifs/smb2ops.c 	       !(oplock & SMB2_LEASE_WRITE_CACHING_HE);
oplock           3448 fs/cifs/smb2ops.c map_oplock_to_lease(u8 oplock)
oplock           3450 fs/cifs/smb2ops.c 	if (oplock == SMB2_OPLOCK_LEVEL_EXCLUSIVE)
oplock           3452 fs/cifs/smb2ops.c 	else if (oplock == SMB2_OPLOCK_LEVEL_II)
oplock           3454 fs/cifs/smb2ops.c 	else if (oplock == SMB2_OPLOCK_LEVEL_BATCH)
oplock           3461 fs/cifs/smb2ops.c smb2_create_lease_buf(u8 *lease_key, u8 oplock)
oplock           3470 fs/cifs/smb2ops.c 	buf->lcontext.LeaseState = map_oplock_to_lease(oplock);
oplock           3487 fs/cifs/smb2ops.c smb3_create_lease_buf(u8 *lease_key, u8 oplock)
oplock           3496 fs/cifs/smb2ops.c 	buf->lcontext.LeaseState = map_oplock_to_lease(oplock);
oplock           4389 fs/cifs/smb2ops.c 	__u32 oplock = 0;
oplock           4435 fs/cifs/smb2ops.c 		oplock = REQ_OPLOCK;
oplock           4437 fs/cifs/smb2ops.c 		oplock = 0;
oplock           4438 fs/cifs/smb2ops.c 	rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf);
oplock           1920 fs/cifs/smb2pdu.c 		       unsigned int *epoch, char *lease_key, __u8 *oplock,
oplock           1929 fs/cifs/smb2pdu.c 	*oplock = 0;
oplock           1942 fs/cifs/smb2pdu.c 			*oplock = server->ops->parse_lease_buf(cc, epoch,
oplock           1956 fs/cifs/smb2pdu.c 		*oplock = rsp->OplockLevel;
oplock           1963 fs/cifs/smb2pdu.c 		  unsigned int *num_iovec, u8 *lease_key, __u8 *oplock)
oplock           1968 fs/cifs/smb2pdu.c 	iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock);
oplock           2413 fs/cifs/smb2pdu.c SMB2_open_init(struct cifs_tcon *tcon, struct smb_rqst *rqst, __u8 *oplock,
oplock           2490 fs/cifs/smb2pdu.c 		*oplock = SMB2_OPLOCK_LEVEL_NONE;
oplock           2493 fs/cifs/smb2pdu.c 	    *oplock == SMB2_OPLOCK_LEVEL_NONE)
oplock           2494 fs/cifs/smb2pdu.c 		req->RequestedOplockLevel = *oplock;
oplock           2497 fs/cifs/smb2pdu.c 		req->RequestedOplockLevel = *oplock; /* no srv lease support */
oplock           2500 fs/cifs/smb2pdu.c 				       oparms->fid->lease_key, oplock);
oplock           2505 fs/cifs/smb2pdu.c 	if (*oplock == SMB2_OPLOCK_LEVEL_BATCH) {
oplock           2590 fs/cifs/smb2pdu.c 	  __u8 *oplock, struct smb2_file_all_info *buf,
oplock           2618 fs/cifs/smb2pdu.c 	rc = SMB2_open_init(tcon, &rqst, oplock, oparms, path);
oplock           2669 fs/cifs/smb2pdu.c 			    oparms->fid->lease_key, oplock, buf);
oplock            112 fs/cifs/smb2proto.h 			  __u32 *oplock, FILE_ALL_INFO *buf);
oplock            137 fs/cifs/smb2proto.h 		     __le16 *path, __u8 *oplock,
oplock            141 fs/cifs/smb2proto.h 			  __u8 *oplock, struct cifs_open_parms *oparms,
oplock            246 fs/cifs/smb2proto.h 				__u8 *oplock, struct smb2_file_all_info *buf);