/kernel/linux/linux-5.10/fs/cifs/ |
D | smb2ops.c | 688 u8 oplock = SMB2_OPLOCK_LEVEL_II; in open_shroot() local 735 &rqst[0], &oplock, &oparms, &utf16_path); in open_shroot() 823 oparms.fid->lease_key, &oplock, in open_shroot() 856 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_qfs_tcon() local 870 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon() 902 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_qfs_tcon() local 913 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon() 931 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_is_path_accessible() local 949 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, NULL, in smb2_is_path_accessible() 1147 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_set_ea() local [all …]
|
D | dir.c | 228 __u32 *oplock, struct cifs_fid *fid) in cifs_do_create() argument 242 *oplock = 0; in cifs_do_create() 244 *oplock = REQ_OPLOCK; in cifs_do_create() 254 oflags, oplock, &fid->netfid, xid); in cifs_do_create() 367 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_do_create() 377 if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) { in cifs_do_create() 422 if ((*oplock & CIFS_CREATE_ACTION) && in cifs_do_create() 472 __u32 oplock; in cifs_atomic_open() local 528 &oplock, &fid); in cifs_atomic_open() 554 file_info = cifs_new_fileinfo(&fid, file, tlink, oplock); in cifs_atomic_open() [all …]
|
D | smb1ops.c | 372 struct cifsInodeInfo *cinode, __u32 oplock, in cifs_downgrade_oplock() argument 375 cifs_set_oplock_level(cinode, oplock); in cifs_downgrade_oplock() 562 int oplock = 0; in cifs_query_path_info() local 576 tmprc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_query_path_info() 698 __u32 *oplock, FILE_ALL_INFO *buf) in cifs_open_file() argument 705 &oparms->fid->netfid, oplock, buf, in cifs_open_file() 708 return CIFS_open(xid, oparms, oplock, buf); in cifs_open_file() 712 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument 716 cifs_set_oplock_level(cinode, oplock); in cifs_set_fid() 757 int oplock = 0; in smb_set_file_info() local [all …]
|
D | link.c | 308 int oplock = 0; in cifs_query_mf_symlink() local 324 rc = CIFS_open(xid, &oparms, &oplock, &file_info); in cifs_query_mf_symlink() 352 int oplock = 0; in cifs_create_mf_symlink() local 366 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_create_mf_symlink() 395 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_query_mf_symlink() local 418 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, pfile_info, NULL, in smb3_query_mf_symlink() 455 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_create_mf_symlink() local 472 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb3_create_mf_symlink()
|
D | misc.c | 544 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) in cifs_set_oplock_level() argument 546 oplock &= 0xF; in cifs_set_oplock_level() 548 if (oplock == OPLOCK_EXCLUSIVE) { in cifs_set_oplock_level() 549 cinode->oplock = CIFS_CACHE_WRITE_FLG | CIFS_CACHE_READ_FLG; in cifs_set_oplock_level() 552 } else if (oplock == OPLOCK_READ) { in cifs_set_oplock_level() 553 cinode->oplock = CIFS_CACHE_READ_FLG; in cifs_set_oplock_level() 557 cinode->oplock = 0; in cifs_set_oplock_level() 659 open->oplock = CIFS_OPLOCK_NO_CHANGE; in cifs_add_pending_open_locked()
|
D | smb2proto.h | 121 __u32 *oplock, FILE_ALL_INFO *buf); 146 __le16 *path, __u8 *oplock, 153 __u8 *oplock, struct cifs_open_parms *oparms, 276 __u8 *oplock, struct smb2_file_all_info *buf,
|
D | file.c | 178 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, in cifs_nt_open() argument 242 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open() 294 struct tcon_link *tlink, __u32 oplock) in cifs_new_fileinfo() argument 336 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo() 338 oplock = 0; in cifs_new_fileinfo() 346 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock) in cifs_new_fileinfo() 347 oplock = fid->pending_open->oplock; in cifs_new_fileinfo() 351 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo() 521 __u32 oplock; in cifs_open() local 561 oplock = REQ_OPLOCK; in cifs_open() [all …]
|
D | cifsglob.h | 261 struct cifsInodeInfo *cinode, __u32 oplock, 441 char * (*create_lease_buf)(u8 *lease_key, u8 oplock); 1234 __u32 oplock; member 1450 #define CIFS_CACHE_READ(cinode) ((cinode->oplock & CIFS_CACHE_READ_FLG) || (CIFS_SB(cinode->vfs_ino… 1451 #define CIFS_CACHE_HANDLE(cinode) (cinode->oplock & CIFS_CACHE_HANDLE_FLG) 1452 #define CIFS_CACHE_WRITE(cinode) ((cinode->oplock & CIFS_CACHE_WRITE_FLG) || (CIFS_SB(cinode->vfs_i… 1471 unsigned int oplock; /* oplock/lease level we have */ member
|
D | smb2file.c | 39 __u32 *oplock, FILE_ALL_INFO *buf) in smb2_open_file() argument 109 *oplock = smb2_oplock; in smb2_open_file()
|
D | cifsproto.h | 172 extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock); 184 __u32 oplock); 187 unsigned int f_flags, __u32 *oplock, __u16 *netfid, 434 int *oplock, FILE_ALL_INFO *buf);
|
D | inode.c | 446 __u32 oplock; local 486 oplock = REQ_OPLOCK; 488 oplock = 0; 489 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); 1462 int oplock = 0; local 1497 rc = CIFS_open(xid, &oparms, &oplock, NULL); 1796 u32 oplock = 0; local 1809 NULL /* netfid */, info, &oplock, full_path, 2008 int oplock, rc; local 2048 rc = CIFS_open(xid, &oparms, &oplock, NULL);
|
D | cifsacl.c | 1131 int oplock = 0; in get_cifs_acl_by_path() local 1154 rc = CIFS_open(xid, &oparms, &oplock, NULL); in get_cifs_acl_by_path() 1191 int oplock = 0; in set_cifs_acl() local 1220 rc = CIFS_open(xid, &oparms, &oplock, NULL); in set_cifs_acl()
|
D | smb2pdu.c | 1990 unsigned int *epoch, char *lease_key, __u8 *oplock, in smb2_parse_contexts() argument 2005 *oplock = 0; in smb2_parse_contexts() 2018 *oplock = server->ops->parse_lease_buf(cc, epoch, in smb2_parse_contexts() 2042 *oplock = rsp->OplockLevel; in smb2_parse_contexts() 2049 unsigned int *num_iovec, u8 *lease_key, __u8 *oplock) in add_lease_context() argument 2054 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context() 2637 struct smb_rqst *rqst, __u8 *oplock, in SMB2_open_init() argument 2714 *oplock = SMB2_OPLOCK_LEVEL_NONE; in SMB2_open_init() 2717 *oplock == SMB2_OPLOCK_LEVEL_NONE) in SMB2_open_init() 2718 req->RequestedOplockLevel = *oplock; in SMB2_open_init() [all …]
|
D | smb2inode.c | 74 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_compound_op() local 123 &rqst[num_rqst], &oplock, &vars->oparms, in smb2_compound_op()
|
D | Kconfig | 44 directory leases, safe distributed caching (oplock), optional packet
|
D | smb2misc.c | 602 open->oplock = lease_state; in smb2_tcon_find_pending_open_lease()
|
D | cifssmb.c | 1321 CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock, in CIFS_open() argument 1365 if (*oplock & REQ_OPLOCK) in CIFS_open() 1367 else if (*oplock & REQ_BATCHOPLOCK) in CIFS_open() 1416 *oplock = rsp->OplockLevel; in CIFS_open() 1424 *oplock |= CIFS_CREATE_ACTION; in CIFS_open() 5812 int oplock = 0; in CIFSSMBSetPathInfoFB() local 5826 rc = CIFS_open(xid, &oparms, &oplock, NULL); in CIFSSMBSetPathInfoFB()
|
D | cifsfs.c | 924 cinode->oplock = 0; in cifs_file_write_iter()
|
/kernel/linux/linux-5.10/Documentation/admin-guide/cifs/ |
D | usage.rst | 518 if oplock (caching token) is granted and held. Note that
|