Home
last modified time | relevance | path

Searched refs:oplock (Results 1 – 20 of 20) 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.c848 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_qfs_tcon() local
866 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon()
893 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_qfs_tcon() local
906 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon()
923 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_is_path_accessible() local
954 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb2_is_path_accessible()
1159 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_set_ea() local
1171 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_set_ea()
1251 &rqst[0], &oplock, &oparms, utf16_path); in smb2_set_ea()
1437 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
[all …]
H A Dfile.c529 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, in cifs_nt_open() argument
595 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open()
652 struct tcon_link *tlink, __u32 oplock, in cifs_new_fileinfo() argument
707 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo()
709 oplock = 0; in cifs_new_fileinfo()
717 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock) in cifs_new_fileinfo()
718 oplock = fid->pending_open->oplock; in cifs_new_fileinfo()
722 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo()
947 __u32 oplock; in cifs_open() local
1013 oplock = REQ_OPLOCK; in cifs_open()
[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()
705 static int cifs_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, in cifs_open_file() argument
717 &oparms->fid->netfid, oplock, &fi, in cifs_open_file()
721 rc = CIFS_open(xid, oparms, oplock, &fi); in cifs_open_file()
730 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument
734 cifs_set_oplock_level(cinode, oplock); in cifs_set_fid()
775 int oplock = 0; in smb_set_file_info() local
823 rc = CIFS_open(xid, &oparms, &oplock, NULL); in smb_set_file_info()
993 cifs_is_read_op(__u32 oplock) in cifs_is_read_op() argument
[all …]
H A Dmisc.c563 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) in cifs_set_oplock_level() argument
565 oplock &= 0xF; in cifs_set_oplock_level()
567 if (oplock == OPLOCK_EXCLUSIVE) { in cifs_set_oplock_level()
568 cinode->oplock = CIFS_CACHE_WRITE_FLG | CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
571 } else if (oplock == OPLOCK_READ) { in cifs_set_oplock_level()
572 cinode->oplock = CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
576 cinode->oplock = 0; in cifs_set_oplock_level()
679 open->oplock = CIFS_OPLOCK_NO_CHANGE; in cifs_add_pending_open_locked()
H A Dsmb2proto.h123 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
157 __le16 *path, __u8 *oplock,
164 __u8 *oplock, struct cifs_open_parms *oparms,
287 char *lease_key, __u8 *oplock,
H A Dcached_dir.c157 u8 oplock = SMB2_OPLOCK_LEVEL_II; in open_cached_dir() local
180 oplock = SMB2_OPLOCK_LEVEL_II; in open_cached_dir()
268 &rqst[0], &oplock, &oparms, utf16_path); in open_cached_dir()
325 &oplock, NULL, NULL); in open_cached_dir()
332 if (!(oplock & SMB2_LEASE_READ_CACHING_HE)) { in open_cached_dir()
H A Dcifsglob.h360 struct cifsInodeInfo *cinode, __u32 oplock,
475 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
556 void (*set_oplock_level)(struct cifsInodeInfo *cinode, __u32 oplock, __u16 epoch,
559 char * (*create_lease_buf)(u8 *lease_key, u8 oplock);
1383 __u32 oplock; member
1557 #define CIFS_CACHE_READ(cinode) ((cinode->oplock & CIFS_CACHE_READ_FLG) || (CIFS_SB(cinode->netfs.i…
1558 #define CIFS_CACHE_HANDLE(cinode) (cinode->oplock & CIFS_CACHE_HANDLE_FLG)
1559 #define CIFS_CACHE_WRITE(cinode) ((cinode->oplock & CIFS_CACHE_WRITE_FLG) || (CIFS_SB(cinode->netfs…
1579 unsigned int oplock; /* oplock/lease level we have */ member
H A Dreparse.c260 __u32 oplock; in detect_directory_symlink_target() local
328 oplock = 0; in detect_directory_symlink_target()
331 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
347 oplock = 0; in detect_directory_symlink_target()
350 open_rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in detect_directory_symlink_target()
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,
480 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()
1784 int oplock = 0; in cifs_rename_pending_delete() local
1820 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_rename_pending_delete()
2152 u32 oplock = 0; local
2165 NULL /* netfid */, info, &oplock, full_path,
2379 int oplock; local
2431 rc = CIFS_open(xid, &oparms, &oplock, NULL);
H A Dsmb2pdu.c2333 char *lease_key, __u8 *oplock, in smb2_parse_contexts() argument
2349 *oplock = 0; in smb2_parse_contexts()
2376 *oplock = server->ops->parse_lease_buf(cc, epoch, in smb2_parse_contexts()
2404 *oplock = rsp->OplockLevel; in smb2_parse_contexts()
2413 unsigned int *num_iovec, u8 *lease_key, __u8 *oplock) in add_lease_context() argument
2417 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context()
3004 struct smb_rqst *rqst, __u8 *oplock, in SMB2_open_init() argument
3079 *oplock = SMB2_OPLOCK_LEVEL_NONE; in SMB2_open_init()
3082 *oplock == SMB2_OPLOCK_LEVEL_NONE) in SMB2_open_init()
3083 req->RequestedOplockLevel = *oplock; in SMB2_open_init()
[all …]
H A Dsmb2inode.c181 __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.c1429 int oplock = 0; in get_cifs_acl_by_path() local
1456 rc = CIFS_open(xid, &oparms, &oplock, NULL); in get_cifs_acl_by_path()
1493 int oplock = 0; in set_cifs_acl() local
1525 rc = CIFS_open(xid, &oparms, &oplock, NULL); in set_cifs_acl()
H A Dcifssmb.c1149 CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock, in CIFS_open() argument
1193 if (*oplock & REQ_OPLOCK) in CIFS_open()
1195 else if (*oplock & REQ_BATCHOPLOCK) in CIFS_open()
1244 *oplock = rsp->OplockLevel; in CIFS_open()
1252 *oplock |= CIFS_CREATE_ACTION; in CIFS_open()
2696 int oplock = 0; in cifs_query_reparse_point() local
2715 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_query_reparse_point()
5280 int oplock = 0; in CIFSSMBSetPathInfoFB() local
5295 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