/kernel/linux/linux-5.10/fs/cifs/ |
D | misc.c | 544 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) in cifs_set_oplock_level() argument 549 cinode->oplock = CIFS_CACHE_WRITE_FLG | CIFS_CACHE_READ_FLG; in cifs_set_oplock_level() 551 &cinode->vfs_inode); in cifs_set_oplock_level() 553 cinode->oplock = CIFS_CACHE_READ_FLG; in cifs_set_oplock_level() 555 &cinode->vfs_inode); in cifs_set_oplock_level() 557 cinode->oplock = 0; in cifs_set_oplock_level() 564 int cifs_get_writer(struct cifsInodeInfo *cinode) in cifs_get_writer() argument 569 rc = wait_on_bit(&cinode->flags, CIFS_INODE_PENDING_OPLOCK_BREAK, in cifs_get_writer() 574 spin_lock(&cinode->writers_lock); in cifs_get_writer() 575 if (!cinode->writers) in cifs_get_writer() [all …]
|
D | file.c | 267 cifs_has_mand_locks(struct cifsInodeInfo *cinode) in cifs_has_mand_locks() argument 272 down_read(&cinode->lock_sem); in cifs_has_mand_locks() 273 list_for_each_entry(cur, &cinode->llist, llist) { in cifs_has_mand_locks() 279 up_read(&cinode->lock_sem); in cifs_has_mand_locks() 298 struct cifsInodeInfo *cinode = CIFS_I(inode); in cifs_new_fileinfo() local 336 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo() 341 cifs_down_write(&cinode->lock_sem); in cifs_new_fileinfo() 342 list_add(&fdlocks->llist, &cinode->llist); in cifs_new_fileinfo() 343 up_write(&cinode->lock_sem); in cifs_new_fileinfo() 357 spin_lock(&cinode->open_file_lock); in cifs_new_fileinfo() [all …]
|
D | smb2file.c | 124 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_unlock_range() local 148 cifs_down_write(&cinode->lock_sem); in smb2_unlock_range() 161 if (cinode->can_cache_brlcks) { in smb2_unlock_range() 214 up_write(&cinode->lock_sem); in smb2_unlock_range() 267 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_push_mandatory_locks() local 291 list_for_each_entry(fdlocks, &cinode->llist, llist) { in smb2_push_mandatory_locks()
|
D | smb2misc.c | 484 smb2_get_lease_state(struct cifsInodeInfo *cinode) in smb2_get_lease_state() argument 488 if (CIFS_CACHE_WRITE(cinode)) in smb2_get_lease_state() 490 if (CIFS_CACHE_HANDLE(cinode)) in smb2_get_lease_state() 492 if (CIFS_CACHE_READ(cinode)) in smb2_get_lease_state() 544 struct cifsInodeInfo *cinode; in smb2_tcon_has_lease() local 552 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_tcon_has_lease() 554 if (memcmp(cinode->lease_key, rsp->LeaseKey, in smb2_tcon_has_lease() 567 set_bit(CIFS_INODE_PENDING_OPLOCK_BREAK, &cinode->flags); in smb2_tcon_has_lease() 683 struct cifsInodeInfo *cinode; in smb2_is_valid_oplock_break() local 722 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_is_valid_oplock_break() [all …]
|
D | smb1ops.c | 372 struct cifsInodeInfo *cinode, __u32 oplock, in cifs_downgrade_oplock() argument 375 cifs_set_oplock_level(cinode, oplock); in cifs_downgrade_oplock() 714 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in cifs_set_fid() local 716 cifs_set_oplock_level(cinode, oplock); in cifs_set_fid() 717 cinode->can_cache_brlcks = CIFS_CACHE_WRITE(cinode); in cifs_set_fid() 763 struct cifsInodeInfo *cinode = CIFS_I(inode); in smb_set_file_info() local 769 open_file = find_writable_file(cinode, FIND_WR_FSUID_ONLY); in smb_set_file_info() 788 cinode->cifsAttrs = le32_to_cpu(buf->Attributes); in smb_set_file_info() 816 cinode->cifsAttrs = le32_to_cpu(buf->Attributes); in smb_set_file_info() 867 struct cifsInodeInfo *cinode) in cifs_oplock_response() argument [all …]
|
D | smb2ops.c | 1401 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid() local 1410 server->ops->set_oplock_level(cinode, oplock, fid->epoch, in smb2_set_fid() 1412 cinode->can_cache_brlcks = CIFS_CACHE_WRITE(cinode); in smb2_set_fid() 2409 struct cifsInodeInfo *cinode) in smb2_oplock_response() argument 2412 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response() 2413 smb2_get_lease_state(cinode)); in smb2_oplock_response() 2417 CIFS_CACHE_READ(cinode) ? 1 : 0); in smb2_oplock_response() 3899 struct cifsInodeInfo *cinode, __u32 oplock, in smb2_downgrade_oplock() argument 3902 server->ops->set_oplock_level(cinode, oplock, 0, NULL); in smb2_downgrade_oplock() 3906 smb21_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, [all …]
|
D | cifsglob.h | 261 struct cifsInodeInfo *cinode, __u32 oplock, 1450 #define CIFS_CACHE_READ(cinode) ((cinode->oplock & CIFS_CACHE_READ_FLG) || (CIFS_SB(cinode->vfs_ino… argument 1451 #define CIFS_CACHE_HANDLE(cinode) (cinode->oplock & CIFS_CACHE_HANDLE_FLG) argument 1452 #define CIFS_CACHE_WRITE(cinode) ((cinode->oplock & CIFS_CACHE_WRITE_FLG) || (CIFS_SB(cinode->vfs_i… argument
|
D | cifsproto.h | 172 extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock); 173 extern int cifs_get_writer(struct cifsInodeInfo *cinode); 174 extern void cifs_put_writer(struct cifsInodeInfo *cinode); 175 extern void cifs_done_oplock_break(struct cifsInodeInfo *cinode);
|
D | cifsfs.c | 913 struct cifsInodeInfo *cinode = CIFS_I(inode); in cifs_file_write_iter() local 919 if (written > 0 && CIFS_CACHE_READ(cinode)) { in cifs_file_write_iter() 924 cinode->oplock = 0; in cifs_file_write_iter() 929 written = cifs_get_writer(cinode); in cifs_file_write_iter() 944 cifs_put_writer(cinode); in cifs_file_write_iter()
|
D | smb2proto.h | 64 extern __le32 smb2_get_lease_state(struct cifsInodeInfo *cinode);
|