/linux-master/fs/smb/server/ |
H A D | Makefile | 8 misc.o oplock.o connection.o ksmbd_work.o crypto_ctx.o \
|
/linux-master/fs/smb/client/ |
H A D | smb2ops.c | 104 * Sometimes server returns 0 credits on oplock break ack - we need to 115 /* if now have too many oplock credits, rebalance so don't starve normal ops */ 811 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 829 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, 856 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 869 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, 886 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 917 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, 1121 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 1133 oplock 1398 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) argument 1519 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 2186 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 2266 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 2642 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 2827 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 3032 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 3097 u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 3835 smb2_downgrade_oplock(struct TCP_Server_Info *server, struct cifsInodeInfo *cinode, __u32 oplock, unsigned int epoch, bool *purge_cache) argument 3847 smb3_downgrade_oplock(struct TCP_Server_Info *server, struct cifsInodeInfo *cinode, __u32 oplock, unsigned int epoch, bool *purge_cache) argument 3871 smb2_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, unsigned int epoch, bool *purge_cache) argument 3895 smb21_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, unsigned int epoch, bool *purge_cache) argument 3932 smb3_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, unsigned int epoch, bool *purge_cache) argument 3968 smb2_is_read_op(__u32 oplock) argument 3975 smb21_is_read_op(__u32 oplock) argument 3982 map_oplock_to_lease(u8 oplock) argument 3995 smb2_create_lease_buf(u8 *lease_key, u8 oplock) argument 4021 smb3_create_lease_buf(u8 *lease_key, u8 oplock) argument 4984 __u32 oplock = server->oplocks ? REQ_OPLOCK : 0; local [all...] |
H A D | smb1ops.c | 379 struct cifsInodeInfo *cinode, __u32 oplock, 382 cifs_set_oplock_level(cinode, oplock); 573 int oplock = 0; local 593 tmprc = CIFS_open(xid, &oparms, &oplock, NULL); 723 static int cifs_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, argument 735 &oparms->fid->netfid, oplock, &fi, 739 rc = CIFS_open(xid, oparms, oplock, &fi); 748 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) argument 752 cifs_set_oplock_level(cinode, oplock); 793 int oplock local 378 cifs_downgrade_oplock(struct TCP_Server_Info *server, struct cifsInodeInfo *cinode, __u32 oplock, unsigned int epoch, bool *purge_cache) argument 1011 cifs_is_read_op(__u32 oplock) argument [all...] |
H A D | link.c | 255 int oplock = 0; local 272 rc = CIFS_open(xid, &oparms, &oplock, &file_info); 300 int oplock = 0; local 315 rc = CIFS_open(xid, &oparms, &oplock, NULL); 345 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 370 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, pfile_info, NULL, 407 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 427 rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, 523 * until the file is closed or oplock broken so update nlinks locally
|
H A D | dir.c | 178 struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, 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, bu 177 cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid, struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, struct cifs_fid *fid, struct cifs_open_info_data *buf) argument 565 __u32 oplock; local [all...] |
H A D | smb2proto.h | 116 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, 150 __le16 *path, __u8 *oplock, 157 __u8 *oplock, struct cifs_open_parms *oparms, 281 char *lease_key, __u8 *oplock,
|
H A D | misc.c | 427 cifs_dbg(FYI, "Checking for oplock break or dnotify response\n"); 463 /* no sense logging error on invalid handle on oplock 464 break - harmless race between close request and oplock 469 cifs_dbg(FYI, "Invalid handle on oplock break\n"); 475 return false; /* on valid oplock brk we get "request" */ 481 cifs_dbg(FYI, "oplock type 0x%x level 0x%x\n", 504 cifs_dbg(FYI, "file id match, oplock break\n"); 521 cifs_dbg(FYI, "No matching file for oplock break\n"); 526 cifs_dbg(FYI, "Can not process oplock break for non-existent connection\n"); 559 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) argument [all...] |
H A D | cached_dir.c | 142 u8 oplock = SMB2_OPLOCK_LEVEL_II; local 163 oplock = SMB2_OPLOCK_LEVEL_II; 250 &rqst[0], &oplock, &oparms, utf16_path); 317 &oplock, NULL, NULL); 324 if (!(oplock & SMB2_LEASE_READ_CACHING_HE)) {
|
H A D | file.c | 342 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, 408 rc = server->ops->open(xid, &oparms, oplock, buf); 465 struct tcon_link *tlink, __u32 oplock, 517 * If the server returned a read oplock and we have mandatory brlocks, 518 * set oplock level to None. 520 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { 521 cifs_dbg(FYI, "Reset oplock val from read to None due to mand locks\n"); 522 oplock = 0; 530 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock) 341 cifs_nt_open(const char *full_path, struct inode *inode, struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, struct cifs_fid *fid, unsigned int xid, struct cifs_open_info_data *buf) argument 464 cifs_new_fileinfo(struct cifs_fid *fid, struct file *file, struct tcon_link *tlink, __u32 oplock, const char *symlink_target) argument 760 __u32 oplock; local 959 __u32 oplock; local [all...] |
H A D | smb2file.c | 100 int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, void *buf) argument 181 *oplock = smb2_oplock;
|
H A D | cifsglob.h | 325 struct cifsInodeInfo *cinode, __u32 oplock, 440 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, 483 /* send oplock break response */ 521 /* set oplock level for the inode */ 525 char * (*create_lease_buf)(u8 *lease_key, u8 oplock); 526 /* parse lease context buffer and return oplock/epoch info */ 717 int oplock_credits; /* oplock break reserved slots */ 1346 __u32 oplock; member in struct:cifs_pending_open 1448 __u32 oplock_level; /* oplock/lease level from the lease break */ 1453 struct work_struct oplock_break; /* work for oplock break 1585 unsigned int oplock; /* oplock/lease level we have */ member in struct:cifsInodeInfo [all...] |
H A D | cifsproto.h | 183 extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock); 193 struct tcon_link *tlink, __u32 oplock, 197 unsigned int f_flags, __u32 *oplock, __u16 *netfid, 484 int *oplock, FILE_ALL_INFO *buf);
|
H A D | smb2inode.c | 185 __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; local 204 oplock = SMB2_OPLOCK_LEVEL_NONE; 246 oplock = SMB2_OPLOCK_LEVEL_LEASE; 257 &rqst[num_rqst], &oplock, &vars->oparms,
|
H A D | smb2pdu.c | 267 * BB Should we keep oplock break and add flush to exceptions? 2315 char *lease_key, __u8 *oplock, 2331 *oplock = 0; 2358 *oplock = server->ops->parse_lease_buf(cc, epoch, 2386 *oplock = rsp->OplockLevel; 2395 unsigned int *num_iovec, u8 *lease_key, __u8 *oplock) 2399 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); 2986 struct smb_rqst *rqst, __u8 *oplock, 3061 *oplock = SMB2_OPLOCK_LEVEL_NONE; 3064 *oplock 2312 smb2_parse_contexts(struct TCP_Server_Info *server, struct kvec *rsp_iov, unsigned int *epoch, char *lease_key, __u8 *oplock, struct smb2_file_all_info *buf, struct create_posix_rsp *posix) argument 2392 add_lease_context(struct TCP_Server_Info *server, struct smb2_create_req *req, struct kvec *iov, unsigned int *num_iovec, u8 *lease_key, __u8 *oplock) argument 2985 SMB2_open_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, struct smb_rqst *rqst, __u8 *oplock, struct cifs_open_parms *oparms, __le16 *path) argument 3168 SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path, __u8 *oplock, struct smb2_file_all_info *buf, struct create_posix_rsp *posix, struct kvec *err_iov, int *buftype) argument [all...] |
H A D | inode.c | 97 /* don't bother with revalidation if we have an oplock */ 509 __u32 oplock; local 550 oplock = REQ_OPLOCK; 552 oplock = 0; 553 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); 1590 int oplock = 0; local 1626 rc = CIFS_open(xid, &oparms, &oplock, NULL); 1957 u32 oplock = 0; local 1970 NULL /* netfid */, info, &oplock, full_path, 2184 int oplock; local [all...] |
H A D | cifsacl.c | 1417 int oplock = 0; local 1441 rc = CIFS_open(xid, &oparms, &oplock, NULL); 1478 int oplock = 0; local 1508 rc = CIFS_open(xid, &oparms, &oplock, NULL);
|
H A D | smb2misc.c | 223 cifs_dbg(VFS, "Invalid response size %d for oplock break\n", 602 open->oplock = lease_state; 681 cifs_dbg(FYI, "Checking for oplock break\n"); 694 cifs_dbg(FYI, "oplock level 0x%x\n", rsp->OplockLevel); 714 cifs_dbg(FYI, "file id match, oplock break\n"); 743 cifs_dbg(FYI, "No file id matched, oplock break ignored\n");
|
H A D | cifssmb.c | 1141 CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock, argument 1185 if (*oplock & REQ_OPLOCK) 1187 else if (*oplock & REQ_BATCHOPLOCK) 1236 *oplock = rsp->OplockLevel; 1244 *oplock |= CIFS_CREATE_ACTION; 1943 /* oplock break */ 2711 int oplock = 0; local 2730 rc = CIFS_open(xid, &oparms, &oplock, NULL); 5295 int oplock = 0; local 5310 rc = CIFS_open(xid, &oparms, &oplock, NUL [all...] |
H A D | cifsfs.c | 388 * Until the file is open and we have gotten oplock info back from the 1018 "Set no oplock for inode=%p after a write operation\n", 1020 cinode->oplock = 0; 1107 * If the server claims to support oplock on this file, then we 1108 * still need to check oplock even if the local_lease mount 1110 * oplock for which this mount option may be useful if the user
|