Home
last modified time | relevance | path

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

/linux/fs/smb/client/
H A Ddir.c204 umode_t mode, __u32 *oplock, struct cifs_fid *fid, argument
223 *oplock = 0;
225 *oplock = REQ_OPLOCK;
236 oflags, oplock, &fid->netfid, xid);
375 rc = server->ops->open(xid, &oparms, oplock, buf);
393 if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) {
438 if ((*oplock & CIFS_CREATE_ACTION) && S_ISREG(newinode->i_mode)) {
480 __u32 *oplock, struct cifs_fid *fid, argument
493 tlink, oflags, mode, oplock,
523 __u32 oplock; local
[all …]
H A Dsmb2ops.c888 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_qfs_tcon() local
906 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon()
933 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_qfs_tcon() local
946 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon()
963 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_is_path_accessible() local
991 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb2_is_path_accessible()
1197 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_set_ea() local
1210 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_set_ea()
1290 &rqst[0], &oplock, &oparms, utf16_path); in smb2_set_ea()
1479 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
[all …]
H A Dfile.c548 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, in cifs_nt_open() argument
607 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open()
664 struct tcon_link *tlink, __u32 oplock, in cifs_new_fileinfo() argument
718 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo()
720 oplock = 0; in cifs_new_fileinfo()
728 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock) in cifs_new_fileinfo()
729 oplock = fid->pending_open->oplock; in cifs_new_fileinfo()
740 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo()
1028 __u32 oplock; in cifs_open() local
1100 oplock = REQ_OPLOCK; in cifs_open()
[all …]
H A Dlink.c232 int oplock = 0; in cifs_query_mf_symlink() local
249 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, &query_data); in cifs_query_mf_symlink()
277 int oplock = 0; in cifs_create_mf_symlink() local
292 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_create_mf_symlink()
322 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_query_mf_symlink() local
347 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, pfile_info, NULL, in smb3_query_mf_symlink()
384 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_create_mf_symlink() local
404 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb3_create_mf_symlink()
H A Dsmb1ops.c397 struct cifsInodeInfo *cinode, __u32 oplock, in cifs_downgrade_oplock() argument
401 cifs_set_oplock_level(cinode, oplock); in cifs_downgrade_oplock()
872 static int cifs_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, in cifs_open_file() argument
884 &oparms->fid->netfid, oplock, &fi, in cifs_open_file()
888 rc = CIFS_open(xid, oparms, oplock, &fi); in cifs_open_file()
897 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument
904 cifs_set_oplock_level(cinode, oplock); in cifs_set_fid()
945 int oplock = 0; in smb_set_file_info() local
1042 rc = cifs_open_file(xid, &oparms, &oplock, NULL); in smb_set_file_info()
1150 struct cifsInodeInfo *cinode, unsigned int oplock) in cifs_oplock_response() argument
[all …]
H A Dsmb2proto.h50 __le32 smb2_get_lease_state(struct cifsInodeInfo *cinode, unsigned int oplock);
111 __u32 *oplock, void *buf);
139 __le16 *path, __u8 *oplock, struct smb2_file_all_info *buf,
143 struct smb_rqst *rqst, __u8 *oplock,
248 __u16 *epoch, char *lease_key, __u8 *oplock,
H A Dcached_dir.c151 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()
290 if (oplock != SMB2_OPLOCK_LEVEL_II) { in open_cached_dir()
293 __func__, oplock); in open_cached_dir()
355 &oplock, NULL, NULL); in open_cached_dir()
362 if (!(oplock & SMB2_LEASE_READ_CACHING_HE)) { in open_cached_dir()
H A Dmisc.c301 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) in cifs_set_oplock_level() argument
303 oplock &= 0xF; in cifs_set_oplock_level()
305 if (oplock == OPLOCK_EXCLUSIVE) { in cifs_set_oplock_level()
306 cinode->oplock = CIFS_CACHE_WRITE_FLG | CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
309 } else if (oplock == OPLOCK_READ) { in cifs_set_oplock_level()
310 cinode->oplock = CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
314 cinode->oplock = 0; in cifs_set_oplock_level()
419 open->oplock = CIFS_OPLOCK_NO_CHANGE; in cifs_add_pending_open_locked()
H A Dcifsglob.h358 struct cifsInodeInfo *cinode, __u32 oplock,
473 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
519 unsigned int oplock);
554 void (*set_oplock_level)(struct cifsInodeInfo *cinode, __u32 oplock, __u16 epoch,
557 char * (*create_lease_buf)(u8 *lease_key, u8 oplock, u8 *parent_lease_key, __le32 le_flags);
1351 __u32 oplock; member
1559 unsigned int oplock; /* oplock/lease level we have */ member
2352 unsigned int oplock = READ_ONCE(cinode->oplock); in __cifs_cache_state_check() local
2354 return (oplock & oplock_flags) || (sflags & sb_flags); in __cifs_cache_state_check()
2369 WRITE_ONCE(cinode->oplock, 0); in cifs_reset_oplock()
H A Dsmb2misc.c478 __le32 smb2_get_lease_state(struct cifsInodeInfo *cinode, unsigned int oplock) in smb2_get_lease_state() argument
483 if ((oplock & CIFS_CACHE_WRITE_FLG) || (sbflags & CIFS_MOUNT_RW_CACHE)) in smb2_get_lease_state()
485 if (oplock & CIFS_CACHE_HANDLE_FLG) in smb2_get_lease_state()
487 if ((oplock & CIFS_CACHE_READ_FLG) || (sbflags & CIFS_MOUNT_RO_CACHE)) in smb2_get_lease_state()
595 open->oplock = lease_state; in smb2_tcon_find_pending_open_lease()
H A Dsmb2inode.c210 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_compound_op() local
233 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_compound_op()
277 oplock = SMB2_OPLOCK_LEVEL_LEASE; in smb2_compound_op()
288 &rqst[num_rqst], &oplock, &vars->oparms, in smb2_compound_op()
584 oparms->fid->lease_key, &oplock, &idata->fi, NULL); in smb2_compound_op()
1091 __u8 oplock; in smb2_unlink() local
1101 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_unlink()
1120 oplock = SMB2_OPLOCK_LEVEL_LEASE; in smb2_unlink()
1126 &rqst[0], &oplock, &oparms, utf16_path); in smb2_unlink()
H A Dreparse.c264 __u32 oplock; in detect_directory_symlink_target() local
332 oplock = 0; in detect_directory_symlink_target()
335 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
351 oplock = 0; in detect_directory_symlink_target()
354 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
H A Dsmb2file.c151 __u32 *oplock, void *buf) in smb2_open_file() argument
260 *oplock = smb2_oplock; in smb2_open_file()
H A Dtrace.h1325 __u8 oplock),
1326 TP_ARGS(xid, fid, tid, sesid, create_options, desired_access, oplock),
1334 __field(__u8, oplock)
1343 __entry->oplock = oplock;
1347 __entry->create_options, __entry->desired_access, __entry->oplock)
1358 __u8 oplock), \
1359 TP_ARGS(xid, fid, tid, sesid, create_options, desired_access, oplock))
H A Dinode.c522 __u32 oplock; in cifs_sfu_type() local
566 oplock = REQ_OPLOCK; in cifs_sfu_type()
568 oplock = 0; in cifs_sfu_type()
569 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_sfu_type()
1791 int oplock = 0; in cifs_rename_pending_delete() local
1827 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 Dsmb2pdu.c2401 char *lease_key, __u8 *oplock, in smb2_parse_contexts() argument
2417 *oplock = 0; in smb2_parse_contexts()
2444 *oplock = server->ops->parse_lease_buf(cc, epoch, in smb2_parse_contexts()
2472 *oplock = rsp->OplockLevel; in smb2_parse_contexts()
2483 __u8 *oplock, in add_lease_context() argument
2489 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock, in add_lease_context()
3083 struct smb_rqst *rqst, __u8 *oplock, in SMB2_open_init() argument
3158 *oplock = SMB2_OPLOCK_LEVEL_NONE; in SMB2_open_init()
3161 *oplock == SMB2_OPLOCK_LEVEL_NONE) in SMB2_open_init()
3162 req->RequestedOplockLevel = *oplock; in SMB2_open_init()
[all …]
H A Dcifsproto.h160 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock);
170 struct tcon_link *tlink, __u32 oplock,
H A Dcifsacl.c1512 int oplock = 0; in get_cifs_acl_by_path() local
1539 rc = CIFS_open(xid, &oparms, &oplock, NULL); in get_cifs_acl_by_path()
1576 int oplock = 0; in set_cifs_acl() local
1608 rc = CIFS_open(xid, &oparms, &oplock, NULL); in set_cifs_acl()
H A Dcifssmb.c1339 CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock, in CIFS_open() argument
1385 if (*oplock & REQ_OPLOCK) in CIFS_open()
1387 else if (*oplock & REQ_BATCHOPLOCK) in CIFS_open()
1436 *oplock = rsp->OplockLevel; in CIFS_open()
1444 *oplock |= CIFS_CREATE_ACTION; in CIFS_open()
2970 int oplock = 0; in cifs_query_reparse_point() local
2992 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_query_reparse_point()
3102 int oplock = 0; in cifs_create_reparse_inode() local
3128 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_create_reparse_inode()
5838 int oplock = 0; in CIFSSMBSetPathInfoFB() local
[all …]
/linux/fs/smb/server/
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.rst520 if oplock (caching token) is granted and held. Note that