Home
last modified time | relevance | path

Searched refs:cinode (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/fs/smb/client/
Dmisc.c557 void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) in cifs_set_oplock_level() argument
562 cinode->oplock = CIFS_CACHE_WRITE_FLG | CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
564 &cinode->netfs.inode); in cifs_set_oplock_level()
566 cinode->oplock = CIFS_CACHE_READ_FLG; in cifs_set_oplock_level()
568 &cinode->netfs.inode); in cifs_set_oplock_level()
570 cinode->oplock = 0; in cifs_set_oplock_level()
577 int cifs_get_writer(struct cifsInodeInfo *cinode) in cifs_get_writer() argument
582 rc = wait_on_bit(&cinode->flags, CIFS_INODE_PENDING_OPLOCK_BREAK, in cifs_get_writer()
587 spin_lock(&cinode->writers_lock); in cifs_get_writer()
588 if (!cinode->writers) in cifs_get_writer()
[all …]
Dfile.c424 cifs_has_mand_locks(struct cifsInodeInfo *cinode) in cifs_has_mand_locks() argument
429 down_read(&cinode->lock_sem); in cifs_has_mand_locks()
430 list_for_each_entry(cur, &cinode->llist, llist) { in cifs_has_mand_locks()
436 up_read(&cinode->lock_sem); in cifs_has_mand_locks()
455 struct cifsInodeInfo *cinode = CIFS_I(inode); in cifs_new_fileinfo() local
504 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo()
509 cifs_down_write(&cinode->lock_sem); in cifs_new_fileinfo()
510 list_add(&fdlocks->llist, &cinode->llist); in cifs_new_fileinfo()
511 up_write(&cinode->lock_sem); in cifs_new_fileinfo()
525 spin_lock(&cinode->open_file_lock); in cifs_new_fileinfo()
[all …]
Dsmb2misc.c486 smb2_get_lease_state(struct cifsInodeInfo *cinode) in smb2_get_lease_state() argument
490 if (CIFS_CACHE_WRITE(cinode)) in smb2_get_lease_state()
492 if (CIFS_CACHE_HANDLE(cinode)) in smb2_get_lease_state()
494 if (CIFS_CACHE_READ(cinode)) in smb2_get_lease_state()
545 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()
676 struct cifsInodeInfo *cinode; in smb2_is_valid_oplock_break() local
713 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_is_valid_oplock_break()
[all …]
Dsmb2file.c196 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_unlock_range() local
220 cifs_down_write(&cinode->lock_sem); in smb2_unlock_range()
233 if (cinode->can_cache_brlcks) { in smb2_unlock_range()
286 up_write(&cinode->lock_sem); in smb2_unlock_range()
339 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_push_mandatory_locks() local
363 list_for_each_entry(fdlocks, &cinode->llist, llist) { in smb2_push_mandatory_locks()
Dsmb1ops.c379 struct cifsInodeInfo *cinode, __u32 oplock, in cifs_downgrade_oplock() argument
382 cifs_set_oplock_level(cinode, oplock); in cifs_downgrade_oplock()
750 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in cifs_set_fid() local
752 cifs_set_oplock_level(cinode, oplock); in cifs_set_fid()
753 cinode->can_cache_brlcks = CIFS_CACHE_WRITE(cinode); in cifs_set_fid()
799 struct cifsInodeInfo *cinode = CIFS_I(inode); in smb_set_file_info() local
805 open_file = find_writable_file(cinode, FIND_WR_FSUID_ONLY); in smb_set_file_info()
824 cinode->cifsAttrs = le32_to_cpu(buf->Attributes); in smb_set_file_info()
853 cinode->cifsAttrs = le32_to_cpu(buf->Attributes); in smb_set_file_info()
904 __u64 volatile_fid, __u16 net_fid, struct cifsInodeInfo *cinode) in cifs_oplock_response() argument
[all …]
Dsmb2ops.c1380 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_set_fid() local
1389 server->ops->set_oplock_level(cinode, oplock, fid->epoch, in smb2_set_fid()
1391 cinode->can_cache_brlcks = CIFS_CACHE_WRITE(cinode); in smb2_set_fid()
2451 __u64 volatile_fid, __u16 net_fid, struct cifsInodeInfo *cinode) in smb2_oplock_response() argument
2454 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2455 smb2_get_lease_state(cinode)); in smb2_oplock_response()
2458 CIFS_CACHE_READ(cinode) ? 1 : 0); in smb2_oplock_response()
3969 struct cifsInodeInfo *cinode, __u32 oplock, in smb2_downgrade_oplock() argument
3972 server->ops->set_oplock_level(cinode, oplock, 0, NULL); in smb2_downgrade_oplock()
3976 smb21_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock,
[all …]
Dcifsglob.h309 struct cifsInodeInfo *cinode, __u32 oplock,
1521 #define CIFS_CACHE_READ(cinode) ((cinode->oplock & CIFS_CACHE_READ_FLG) || (CIFS_SB(cinode->netfs.i… argument
1522 #define CIFS_CACHE_HANDLE(cinode) (cinode->oplock & CIFS_CACHE_HANDLE_FLG) argument
1523 #define CIFS_CACHE_WRITE(cinode) ((cinode->oplock & CIFS_CACHE_WRITE_FLG) || (CIFS_SB(cinode->netfs… argument
Dcifsfs.c421 struct cifsInodeInfo *cinode = CIFS_I(inode); in cifs_free_inode() local
424 kfree(cinode->symlink_target); in cifs_free_inode()
425 kmem_cache_free(cifs_inode_cachep, cinode); in cifs_free_inode()
1005 struct cifsInodeInfo *cinode = CIFS_I(inode); in cifs_file_write_iter() local
1011 if (written > 0 && CIFS_CACHE_READ(cinode)) { in cifs_file_write_iter()
1016 cinode->oplock = 0; in cifs_file_write_iter()
1021 written = cifs_get_writer(cinode); in cifs_file_write_iter()
1036 cifs_put_writer(cinode); in cifs_file_write_iter()
Dcifsproto.h182 extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock);
183 extern int cifs_get_writer(struct cifsInodeInfo *cinode);
184 extern void cifs_put_writer(struct cifsInodeInfo *cinode);
185 extern void cifs_done_oplock_break(struct cifsInodeInfo *cinode);
Dsmb2proto.h51 extern __le32 smb2_get_lease_state(struct cifsInodeInfo *cinode);