Lines Matching refs:cinode

1380 	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,
3981 struct cifsInodeInfo *cinode, __u32 oplock, in smb3_downgrade_oplock() argument
3984 unsigned int old_state = cinode->oplock; in smb3_downgrade_oplock()
3985 unsigned int old_epoch = cinode->epoch; in smb3_downgrade_oplock()
3989 smb21_set_oplock_level(cinode, oplock, 0, NULL); in smb3_downgrade_oplock()
3990 cinode->epoch = epoch; in smb3_downgrade_oplock()
3993 new_state = cinode->oplock; in smb3_downgrade_oplock()
4004 smb2_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, in smb2_set_oplock_level() argument
4008 cinode->lease_granted = false; in smb2_set_oplock_level()
4012 cinode->oplock = CIFS_CACHE_RHW_FLG; in smb2_set_oplock_level()
4014 &cinode->netfs.inode); in smb2_set_oplock_level()
4016 cinode->oplock = CIFS_CACHE_RW_FLG; in smb2_set_oplock_level()
4018 &cinode->netfs.inode); in smb2_set_oplock_level()
4020 cinode->oplock = CIFS_CACHE_READ_FLG; in smb2_set_oplock_level()
4022 &cinode->netfs.inode); in smb2_set_oplock_level()
4024 cinode->oplock = 0; in smb2_set_oplock_level()
4028 smb21_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, in smb21_set_oplock_level() argument
4035 cinode->lease_granted = true; in smb21_set_oplock_level()
4041 return smb2_set_oplock_level(cinode, oplock, epoch, in smb21_set_oplock_level()
4059 cinode->oplock = new_oplock; in smb21_set_oplock_level()
4061 &cinode->netfs.inode); in smb21_set_oplock_level()
4065 smb3_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, in smb3_set_oplock_level() argument
4068 unsigned int old_oplock = cinode->oplock; in smb3_set_oplock_level()
4070 smb21_set_oplock_level(cinode, oplock, epoch, purge_cache); in smb3_set_oplock_level()
4075 if (cinode->oplock == CIFS_CACHE_READ_FLG && in smb3_set_oplock_level()
4076 (epoch - cinode->epoch > 0)) in smb3_set_oplock_level()
4078 else if (cinode->oplock == CIFS_CACHE_RH_FLG && in smb3_set_oplock_level()
4079 (epoch - cinode->epoch > 1)) in smb3_set_oplock_level()
4081 else if (cinode->oplock == CIFS_CACHE_RHW_FLG && in smb3_set_oplock_level()
4082 (epoch - cinode->epoch > 1)) in smb3_set_oplock_level()
4084 else if (cinode->oplock == 0 && in smb3_set_oplock_level()
4085 (epoch - cinode->epoch > 0)) in smb3_set_oplock_level()
4088 if (cinode->oplock == CIFS_CACHE_RH_FLG && in smb3_set_oplock_level()
4089 (epoch - cinode->epoch > 0)) in smb3_set_oplock_level()
4091 else if (cinode->oplock == CIFS_CACHE_RHW_FLG && in smb3_set_oplock_level()
4092 (epoch - cinode->epoch > 1)) in smb3_set_oplock_level()
4095 cinode->epoch = epoch; in smb3_set_oplock_level()