Home
last modified time | relevance | path

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

/linux-6.6.21/fs/smb/client/
Ddir.c178 struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, argument
193 *oplock = 0;
195 *oplock = REQ_OPLOCK;
208 oflags, oplock, &fid->netfid, xid);
317 rc = server->ops->open(xid, &oparms, oplock, buf);
328 if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) {
373 if ((*oplock & CIFS_CREATE_ACTION) && S_ISREG(newinode->i_mode)) {
428 __u32 oplock; local
488 &oplock, &fid, &buf);
513 file_info = cifs_new_fileinfo(&fid, file, tlink, oplock, buf.symlink_target);
[all …]
Dsmb2ops.c810 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_qfs_tcon() local
828 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb3_qfs_tcon()
855 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_qfs_tcon() local
868 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, in smb2_qfs_tcon()
885 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_is_path_accessible() local
916 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb2_is_path_accessible()
1120 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_set_ea() local
1203 &rqst[0], &oplock, &oparms, utf16_path); in smb2_set_ea()
1378 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
1389 server->ops->set_oplock_level(cinode, oplock, fid->epoch, in smb2_set_fid()
[all …]
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()
723 static int cifs_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, in cifs_open_file() argument
735 &oparms->fid->netfid, oplock, &fi, in cifs_open_file()
739 rc = CIFS_open(xid, oparms, oplock, &fi); in cifs_open_file()
748 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument
752 cifs_set_oplock_level(cinode, oplock); in cifs_set_fid()
793 int oplock = 0; in smb_set_file_info() local
[all …]
Dlink.c267 int oplock = 0; in cifs_query_mf_symlink() local
284 rc = CIFS_open(xid, &oparms, &oplock, &file_info); in cifs_query_mf_symlink()
312 int oplock = 0; in cifs_create_mf_symlink() local
327 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_create_mf_symlink()
357 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_query_mf_symlink() local
382 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, pfile_info, NULL, in smb3_query_mf_symlink()
419 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb3_create_mf_symlink() local
439 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, in smb3_create_mf_symlink()
Dsmb2proto.h101 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
130 __le16 *path, __u8 *oplock,
137 __u8 *oplock, struct cifs_open_parms *oparms,
261 char *lease_key, __u8 *oplock,
Dmisc.c557 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) in cifs_set_oplock_level() argument
559 oplock &= 0xF; in cifs_set_oplock_level()
561 if (oplock == OPLOCK_EXCLUSIVE) { in cifs_set_oplock_level()
562 cinode->oplock = CIFS_CACHE_WRITE_FLG | CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
565 } else if (oplock == OPLOCK_READ) { in cifs_set_oplock_level()
566 cinode->oplock = CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
570 cinode->oplock = 0; in cifs_set_oplock_level()
673 open->oplock = CIFS_OPLOCK_NO_CHANGE; in cifs_add_pending_open_locked()
Dfile.c342 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, in cifs_nt_open() argument
402 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open()
450 struct tcon_link *tlink, __u32 oplock, in cifs_new_fileinfo() argument
504 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo()
506 oplock = 0; in cifs_new_fileinfo()
514 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock) in cifs_new_fileinfo()
515 oplock = fid->pending_open->oplock; in cifs_new_fileinfo()
519 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo()
695 __u32 oplock; in cifs_open() local
757 oplock = REQ_OPLOCK; in cifs_open()
[all …]
Dcached_dir.c142 u8 oplock = SMB2_OPLOCK_LEVEL_II; in open_cached_dir() local
242 &rqst[0], &oplock, &oparms, utf16_path); in open_cached_dir()
304 &oplock, NULL, NULL); in open_cached_dir()
311 if (!(oplock & SMB2_LEASE_READ_CACHING_HE)) { in open_cached_dir()
Dcifsglob.h309 struct cifsInodeInfo *cinode, __u32 oplock,
420 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
505 char * (*create_lease_buf)(u8 *lease_key, u8 oplock);
1310 __u32 oplock; member
1521 #define CIFS_CACHE_READ(cinode) ((cinode->oplock & CIFS_CACHE_READ_FLG) || (CIFS_SB(cinode->netfs.i…
1522 #define CIFS_CACHE_HANDLE(cinode) (cinode->oplock & CIFS_CACHE_HANDLE_FLG)
1523 #define CIFS_CACHE_WRITE(cinode) ((cinode->oplock & CIFS_CACHE_WRITE_FLG) || (CIFS_SB(cinode->netfs…
1543 unsigned int oplock; /* oplock/lease level we have */ member
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()
Dcifsproto.h182 extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock);
192 struct tcon_link *tlink, __u32 oplock,
196 unsigned int f_flags, __u32 *oplock, __u16 *netfid,
476 int *oplock, FILE_ALL_INFO *buf);
Dinode.c507 __u32 oplock; in cifs_sfu_type() local
548 oplock = REQ_OPLOCK; in cifs_sfu_type()
550 oplock = 0; in cifs_sfu_type()
551 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_sfu_type()
1620 int oplock = 0; in cifs_rename_pending_delete() local
1656 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_rename_pending_delete()
1981 u32 oplock = 0; local
1994 NULL /* netfid */, info, &oplock, full_path,
2208 int oplock; local
2253 rc = CIFS_open(xid, &oparms, &oplock, NULL);
Dsmb2pdu.c2290 char *lease_key, __u8 *oplock, in smb2_parse_contexts() argument
2306 *oplock = 0; in smb2_parse_contexts()
2333 *oplock = server->ops->parse_lease_buf(cc, epoch, in smb2_parse_contexts()
2361 *oplock = rsp->OplockLevel; in smb2_parse_contexts()
2370 unsigned int *num_iovec, u8 *lease_key, __u8 *oplock) in add_lease_context() argument
2374 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context()
2929 struct smb_rqst *rqst, __u8 *oplock, in SMB2_open_init() argument
3004 *oplock = SMB2_OPLOCK_LEVEL_NONE; in SMB2_open_init()
3007 *oplock == SMB2_OPLOCK_LEVEL_NONE) in SMB2_open_init()
3008 req->RequestedOplockLevel = *oplock; in SMB2_open_init()
[all …]
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()
Dsmb2inode.c70 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; in smb2_compound_op() local
122 &rqst[num_rqst], &oplock, &vars->oparms, in smb2_compound_op()
Dcifssmb.c1141 CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock, in CIFS_open() argument
1185 if (*oplock & REQ_OPLOCK) in CIFS_open()
1187 else if (*oplock & REQ_BATCHOPLOCK) in CIFS_open()
1236 *oplock = rsp->OplockLevel; in CIFS_open()
1244 *oplock |= CIFS_CREATE_ACTION; in CIFS_open()
2710 int oplock = 0; in cifs_query_reparse_point() local
2729 rc = CIFS_open(xid, &oparms, &oplock, NULL); in cifs_query_reparse_point()
5285 int oplock = 0; in CIFSSMBSetPathInfoFB() local
5300 rc = CIFS_open(xid, &oparms, &oplock, NULL); in CIFSSMBSetPathInfoFB()
Dsmb2misc.c602 open->oplock = lease_state; in smb2_tcon_find_pending_open_lease()
Dcifsfs.c1016 cinode->oplock = 0; in cifs_file_write_iter()
/linux-6.6.21/fs/smb/server/
DMakefile8 misc.o oplock.o connection.o ksmbd_work.o crypto_ctx.o \
DKconfig41 Secure negotiate, Pre-authentication integrity, oplock/lease,
/linux-6.6.21/Documentation/filesystems/smb/
Dksmbd.rst175 2. Enable one of components (smb, auth, vfs, oplock, ipc, conn, rdma)
180 [smb] auth vfs oplock ipc conn [rdma]
/linux-6.6.21/Documentation/admin-guide/cifs/
Dusage.rst518 if oplock (caching token) is granted and held. Note that