Home
last modified time | relevance | path

Searched refs:oplock (Results 1 – 22 of 22) sorted by relevance

/linux/fs/smb/client/
H A Ddir.c178 struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, argument
194 *oplock = 0;
196 *oplock = REQ_OPLOCK;
213 oflags, oplock, &fid->netfid, xid);
325 rc = server->ops->open(xid, &oparms, oplock, buf);
343 if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) {
388 if ((*oplock & CIFS_CREATE_ACTION) && S_ISREG(newinode->i_mode)) {
443 __u32 oplock; local
503 &oplock, &fid, &buf);
528 file_info = cifs_new_fileinfo(&fid, file, tlink, oplock, buf.symlink_target);
[all …]
H A Dsmb2ops.c1169 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_set_ea()
1567 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_ioctl_query_info()
2332 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_query_dir_first()
3956 new_state = cinode->oplock; in smb3_downgrade_oplock()
3970 oplock &= 0xFF; in smb2_set_oplock_level()
3987 cinode->oplock = 0; in smb2_set_oplock_level()
3997 oplock &= 0xFF; in smb21_set_oplock_level()
4022 cinode->oplock = new_oplock; in smb21_set_oplock_level()
4064 smb2_is_read_op(__u32 oplock) in smb2_is_read_op() argument
4071 smb21_is_read_op(__u32 oplock) in smb21_is_read_op() argument
[all …]
H A Dlink.c255 int oplock = 0; in cifs_query_mf_symlink() local
272 rc = CIFS_open(xid, &oparms, &oplock, &file_info); in cifs_query_mf_symlink()
300 int oplock = 0; in cifs_create_mf_symlink() local
315 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_create_mf_symlink()
345 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_query_mf_symlink() local
370 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, pfile_info, NULL, in smb3_query_mf_symlink()
407 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_create_mf_symlink() local
427 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb3_create_mf_symlink()
H A Dfile.c707 oplock = 0; in cifs_new_fileinfo()
715 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock) in cifs_new_fileinfo()
716 oplock = fid->pending_open->oplock; in cifs_new_fileinfo()
945 __u32 oplock; in cifs_open() local
1007 oplock = REQ_OPLOCK; in cifs_open()
1009 oplock = 0; in cifs_open()
1144 __u32 oplock; in cifs_reopen_file() local
1190 oplock = REQ_OPLOCK; in cifs_reopen_file()
1192 oplock = 0; in cifs_reopen_file()
1314 oplock = 0; in cifs_reopen_file()
[all …]
H A Dsmb1ops.c379 struct cifsInodeInfo *cinode, __u32 oplock, in cifs_downgrade_oplock() argument
382 cifs_set_oplock_level(cinode, oplock); in cifs_downgrade_oplock()
573 int oplock = 0; in cifs_query_path_info() local
593 tmprc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_query_path_info()
735 &oparms->fid->netfid, oplock, &fi, in cifs_open_file()
739 rc = CIFS_open(xid, oparms, oplock, &fi); in cifs_open_file()
752 cifs_set_oplock_level(cinode, oplock); in cifs_set_fid()
793 int oplock = 0; in smb_set_file_info() local
841 rc = CIFS_open(xid, &oparms, &oplock, NULL); in smb_set_file_info()
1011 cifs_is_read_op(__u32 oplock) in cifs_is_read_op() argument
[all …]
H A Dsmb2proto.h117 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
151 __le16 *path, __u8 *oplock,
158 __u8 *oplock, struct cifs_open_parms *oparms,
281 char *lease_key, __u8 *oplock,
H A Dcached_dir.c142 u8 oplock = SMB2_OPLOCK_LEVEL_II; in open_cached_dir() local
163 oplock = SMB2_OPLOCK_LEVEL_II; in open_cached_dir()
250 &rqst[0], &oplock, &oparms, utf16_path); in open_cached_dir()
317 &oplock, NULL, NULL); in open_cached_dir()
324 if (!(oplock & SMB2_LEASE_READ_CACHING_HE)) { in open_cached_dir()
H A Dmisc.c562 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) in cifs_set_oplock_level() argument
564 oplock &= 0xF; in cifs_set_oplock_level()
566 if (oplock == OPLOCK_EXCLUSIVE) { in cifs_set_oplock_level()
567 cinode->oplock = CIFS_CACHE_WRITE_FLG | CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
570 } else if (oplock == OPLOCK_READ) { in cifs_set_oplock_level()
571 cinode->oplock = CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
575 cinode->oplock = 0; in cifs_set_oplock_level()
678 open->oplock = CIFS_OPLOCK_NO_CHANGE; in cifs_add_pending_open_locked()
H A Dreparse.c121 __u32 oplock; in detect_directory_symlink_target() local
189 oplock = 0; in detect_directory_symlink_target()
192 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
208 oplock = 0; in detect_directory_symlink_target()
211 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
H A Dcifsglob.h322 struct cifsInodeInfo *cinode, __u32 oplock,
437 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
521 char * (*create_lease_buf)(u8 *lease_key, u8 oplock);
1349 __u32 oplock; member
1524 #define CIFS_CACHE_READ(cinode) ((cinode->oplock & CIFS_CACHE_READ_FLG) || (CIFS_SB(cinode->netfs.i…
1525 #define CIFS_CACHE_HANDLE(cinode) (cinode->oplock & CIFS_CACHE_HANDLE_FLG)
1526 #define CIFS_CACHE_WRITE(cinode) ((cinode->oplock & CIFS_CACHE_WRITE_FLG) || (CIFS_SB(cinode->netfs…
1546 unsigned int oplock; /* oplock/lease level we have */ member
H A Dsmb2file.c100 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, void *buf) in smb2_open_file() argument
181 *oplock = smb2_oplock; in smb2_open_file()
H A Dcifsproto.h185 extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock);
195 struct tcon_link *tlink, __u32 oplock,
199 unsigned int f_flags, __u32 *oplock, __u16 *netfid,
482 int *oplock, FILE_ALL_INFO *buf);
H A Dinode.c526 __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()
1667 int oplock = 0; in cifs_rename_pending_delete() local
1703 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_rename_pending_delete()
2034 u32 oplock = 0; local
2047 NULL /* netfid */, info, &oplock, full_path,
2261 int oplock; local
2306 rc = CIFS_open(xid, &oparms, &oplock, NULL);
H A Dsmb2pdu.c2337 char *lease_key, __u8 *oplock, in smb2_parse_contexts() argument
2353 *oplock = 0; in smb2_parse_contexts()
2408 *oplock = rsp->OplockLevel; in smb2_parse_contexts()
3008 struct smb_rqst *rqst, __u8 *oplock, in SMB2_open_init() argument
3083 *oplock = SMB2_OPLOCK_LEVEL_NONE; in SMB2_open_init()
3086 *oplock == SMB2_OPLOCK_LEVEL_NONE) in SMB2_open_init()
3087 req->RequestedOplockLevel = *oplock; in SMB2_open_init()
3093 oparms->fid->lease_key, oplock); in SMB2_open_init()
3098 if (*oplock == SMB2_OPLOCK_LEVEL_BATCH) { in SMB2_open_init()
3191 __u8 *oplock, struct smb2_file_all_info *buf, in SMB2_open() argument
[all …]
H A Dsmb2inode.c185 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_compound_op() local
204 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_compound_op()
246 oplock = SMB2_OPLOCK_LEVEL_LEASE; in smb2_compound_op()
257 &rqst[num_rqst], &oplock, &vars->oparms, in smb2_compound_op()
H A Dcifsacl.c1417 int oplock = 0; in get_cifs_acl_by_path() local
1441 rc = CIFS_open(xid, &oparms, &oplock, NULL); in get_cifs_acl_by_path()
1478 int oplock = 0; in set_cifs_acl() local
1508 rc = CIFS_open(xid, &oparms, &oplock, NULL); in set_cifs_acl()
H A Dcifssmb.c1143 CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock, in CIFS_open() argument
1187 if (*oplock & REQ_OPLOCK) in CIFS_open()
1189 else if (*oplock & REQ_BATCHOPLOCK) in CIFS_open()
1238 *oplock = rsp->OplockLevel; in CIFS_open()
1246 *oplock |= CIFS_CREATE_ACTION; in CIFS_open()
2753 int oplock = 0; in cifs_query_reparse_point() local
2772 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_query_reparse_point()
5337 int oplock = 0; in CIFSSMBSetPathInfoFB() local
5352 rc = CIFS_open(xid, &oparms, &oplock, NULL); in CIFSSMBSetPathInfoFB()
H A Dsmb2misc.c602 open->oplock = lease_state; in smb2_tcon_find_pending_open_lease()
/linux/fs/smb/server/
H A DMakefile8 misc.o oplock.o connection.o ksmbd_work.o crypto_ctx.o \
H A DKconfig41 Secure negotiate, Pre-authentication integrity, oplock/lease,
/linux/Documentation/filesystems/smb/
H A Dksmbd.rst178 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 Dusage.rst518 if oplock (caching token) is granted and held. Note that