| /linux/fs/smb/client/ |
| H A D | smb2ops.c | 867 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_qfs_tcon() local 885 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon() 912 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_qfs_tcon() local 925 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon() 942 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_is_path_accessible() local 970 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb2_is_path_accessible() 1176 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_set_ea() local 1189 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_set_ea() 1269 &rqst[0], &oplock, &oparms, utf16_path); in smb2_set_ea() 1458 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument [all …]
|
| H A D | file.c | 542 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, in cifs_nt_open() argument 608 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open() 665 struct tcon_link *tlink, __u32 oplock, in cifs_new_fileinfo() argument 720 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo() 722 oplock = 0; in cifs_new_fileinfo() 730 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock) in cifs_new_fileinfo() 731 oplock = fid->pending_open->oplock; in cifs_new_fileinfo() 740 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo() 1020 __u32 oplock; in cifs_open() local 1103 oplock = REQ_OPLOCK; in cifs_open() [all …]
|
| H A D | smb1ops.c | 395 struct cifsInodeInfo *cinode, __u32 oplock, in cifs_downgrade_oplock() argument 399 cifs_set_oplock_level(cinode, oplock); in cifs_downgrade_oplock() 870 static int cifs_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, in cifs_open_file() argument 882 &oparms->fid->netfid, oplock, &fi, in cifs_open_file() 886 rc = CIFS_open(xid, oparms, oplock, &fi); in cifs_open_file() 895 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument 902 cifs_set_oplock_level(cinode, oplock); in cifs_set_fid() 943 int oplock = 0; in smb_set_file_info() local 1040 rc = cifs_open_file(xid, &oparms, &oplock, NULL); in smb_set_file_info() 1148 struct cifsInodeInfo *cinode, unsigned int oplock) in cifs_oplock_response() argument [all …]
|
| H A D | misc.c | 294 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) in cifs_set_oplock_level() argument 296 oplock &= 0xF; in cifs_set_oplock_level() 298 if (oplock == OPLOCK_EXCLUSIVE) { in cifs_set_oplock_level() 299 cinode->oplock = CIFS_CACHE_WRITE_FLG | CIFS_CACHE_READ_FLG; in cifs_set_oplock_level() 302 } else if (oplock == OPLOCK_READ) { in cifs_set_oplock_level() 303 cinode->oplock = CIFS_CACHE_READ_FLG; in cifs_set_oplock_level() 307 cinode->oplock = 0; in cifs_set_oplock_level() 410 open->oplock = CIFS_OPLOCK_NO_CHANGE; in cifs_add_pending_open_locked()
|
| H A D | smb2misc.c | 487 __le32 smb2_get_lease_state(struct cifsInodeInfo *cinode, unsigned int oplock) in smb2_get_lease_state() argument 492 if ((oplock & CIFS_CACHE_WRITE_FLG) || (sbflags & CIFS_MOUNT_RW_CACHE)) in smb2_get_lease_state() 494 if (oplock & CIFS_CACHE_HANDLE_FLG) in smb2_get_lease_state() 496 if ((oplock & CIFS_CACHE_READ_FLG) || (sbflags & CIFS_MOUNT_RO_CACHE)) in smb2_get_lease_state() 604 open->oplock = lease_state; in smb2_tcon_find_pending_open_lease()
|
| H A D | cached_dir.c | 151 u8 oplock = SMB2_OPLOCK_LEVEL_II; in open_cached_dir() local 175 oplock = SMB2_OPLOCK_LEVEL_II; in open_cached_dir() 286 &rqst[0], &oplock, &oparms, utf16_path); in open_cached_dir() 347 &oplock, NULL, NULL); in open_cached_dir() 354 if (!(oplock & SMB2_LEASE_READ_CACHING_HE)) { in open_cached_dir()
|
| H A D | smb2inode.c | 185 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_compound_op() local 208 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_compound_op() 252 oplock = SMB2_OPLOCK_LEVEL_LEASE; in smb2_compound_op() 263 &rqst[num_rqst], &oplock, &vars->oparms, in smb2_compound_op() 695 oparms->fid->lease_key, &oplock, &idata->fi, NULL); in smb2_compound_op() 1202 __u8 oplock; in smb2_unlink() local 1212 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_unlink() 1230 oplock = SMB2_OPLOCK_LEVEL_LEASE; in smb2_unlink() 1236 &rqst[0], &oplock, &oparms, utf16_path); in smb2_unlink()
|
| H A D | reparse.c | 263 __u32 oplock; in detect_directory_symlink_target() local 331 oplock = 0; in detect_directory_symlink_target() 334 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target() 350 oplock = 0; in detect_directory_symlink_target() 353 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
|
| H A D | smb2file.c | 144 __u32 *oplock, void *buf) in smb2_open_file() argument 253 *oplock = smb2_oplock; in smb2_open_file()
|
| H A D | inode.c | 526 __u32 oplock; in cifs_sfu_type() local 570 oplock = REQ_OPLOCK; in cifs_sfu_type() 572 oplock = 0; in cifs_sfu_type() 573 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_sfu_type() 1793 int oplock = 0; in cifs_rename_pending_delete() local 1829 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_rename_pending_delete() 2195 u32 oplock = 0; local 2208 NULL /* netfid */, info, &oplock, full_path, 2424 int oplock; local 2478 rc = CIFS_open(xid, &oparms, &oplock, NULL);
|
| H A D | smb2pdu.c | 2391 char *lease_key, __u8 *oplock, in smb2_parse_contexts() argument 2407 *oplock = 0; in smb2_parse_contexts() 2434 *oplock = server->ops->parse_lease_buf(cc, epoch, in smb2_parse_contexts() 2462 *oplock = rsp->OplockLevel; in smb2_parse_contexts() 2473 __u8 *oplock, in add_lease_context() argument 2479 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock, in add_lease_context() 3072 struct smb_rqst *rqst, __u8 *oplock, in SMB2_open_init() argument 3147 *oplock = SMB2_OPLOCK_LEVEL_NONE; in SMB2_open_init() 3150 *oplock == SMB2_OPLOCK_LEVEL_NONE) in SMB2_open_init() 3151 req->RequestedOplockLevel = *oplock; in SMB2_open_init() [all …]
|
| H A D | cifsacl.c | 1441 int oplock = 0; in get_cifs_acl_by_path() local 1468 rc = CIFS_open(xid, &oparms, &oplock, NULL); in get_cifs_acl_by_path() 1505 int oplock = 0; in set_cifs_acl() local 1537 rc = CIFS_open(xid, &oparms, &oplock, NULL); in set_cifs_acl()
|
| /linux/Documentation/filesystems/smb/ |
| H A D | ksmbd.rst | 178 2. Enable one of the components (smb, auth, vfs, oplock, ipc, conn, rdma) 183 [smb] auth vfs oplock ipc conn [rdma]
|
| /linux/Documentation/admin-guide/cifs/ |
| H A D | usage.rst | 520 if oplock (caching token) is granted and held. Note that
|