• Home
  • Raw
  • Download

Lines Matching refs:cinode

1512 	struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry));  in smb2_set_fid()  local
1521 server->ops->set_oplock_level(cinode, oplock, fid->epoch, in smb2_set_fid()
1523 cinode->can_cache_brlcks = CIFS_CACHE_WRITE(cinode); in smb2_set_fid()
2574 __u64 volatile_fid, __u16 net_fid, struct cifsInodeInfo *cinode) in smb2_oplock_response() argument
2577 return SMB2_lease_break(0, tcon, cinode->lease_key, in smb2_oplock_response()
2578 smb2_get_lease_state(cinode)); in smb2_oplock_response()
2581 CIFS_CACHE_READ(cinode) ? 1 : 0); in smb2_oplock_response()
4161 struct cifsInodeInfo *cinode, __u32 oplock, in smb2_downgrade_oplock() argument
4164 server->ops->set_oplock_level(cinode, oplock, 0, NULL); in smb2_downgrade_oplock()
4168 smb21_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock,
4173 struct cifsInodeInfo *cinode, __u32 oplock, in smb3_downgrade_oplock() argument
4176 unsigned int old_state = cinode->oplock; in smb3_downgrade_oplock()
4177 unsigned int old_epoch = cinode->epoch; in smb3_downgrade_oplock()
4181 smb21_set_oplock_level(cinode, oplock, 0, NULL); in smb3_downgrade_oplock()
4182 cinode->epoch = epoch; in smb3_downgrade_oplock()
4185 new_state = cinode->oplock; in smb3_downgrade_oplock()
4196 smb2_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, in smb2_set_oplock_level() argument
4200 cinode->lease_granted = false; in smb2_set_oplock_level()
4204 cinode->oplock = CIFS_CACHE_RHW_FLG; in smb2_set_oplock_level()
4206 &cinode->vfs_inode); in smb2_set_oplock_level()
4208 cinode->oplock = CIFS_CACHE_RW_FLG; in smb2_set_oplock_level()
4210 &cinode->vfs_inode); in smb2_set_oplock_level()
4212 cinode->oplock = CIFS_CACHE_READ_FLG; in smb2_set_oplock_level()
4214 &cinode->vfs_inode); in smb2_set_oplock_level()
4216 cinode->oplock = 0; in smb2_set_oplock_level()
4220 smb21_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, in smb21_set_oplock_level() argument
4227 cinode->lease_granted = true; in smb21_set_oplock_level()
4233 return smb2_set_oplock_level(cinode, oplock, epoch, in smb21_set_oplock_level()
4251 cinode->oplock = new_oplock; in smb21_set_oplock_level()
4253 &cinode->vfs_inode); in smb21_set_oplock_level()
4257 smb3_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock, in smb3_set_oplock_level() argument
4260 unsigned int old_oplock = cinode->oplock; in smb3_set_oplock_level()
4262 smb21_set_oplock_level(cinode, oplock, epoch, purge_cache); in smb3_set_oplock_level()
4267 if (cinode->oplock == CIFS_CACHE_READ_FLG && in smb3_set_oplock_level()
4268 (epoch - cinode->epoch > 0)) in smb3_set_oplock_level()
4270 else if (cinode->oplock == CIFS_CACHE_RH_FLG && in smb3_set_oplock_level()
4271 (epoch - cinode->epoch > 1)) in smb3_set_oplock_level()
4273 else if (cinode->oplock == CIFS_CACHE_RHW_FLG && in smb3_set_oplock_level()
4274 (epoch - cinode->epoch > 1)) in smb3_set_oplock_level()
4276 else if (cinode->oplock == 0 && in smb3_set_oplock_level()
4277 (epoch - cinode->epoch > 0)) in smb3_set_oplock_level()
4280 if (cinode->oplock == CIFS_CACHE_RH_FLG && in smb3_set_oplock_level()
4281 (epoch - cinode->epoch > 0)) in smb3_set_oplock_level()
4283 else if (cinode->oplock == CIFS_CACHE_RHW_FLG && in smb3_set_oplock_level()
4284 (epoch - cinode->epoch > 1)) in smb3_set_oplock_level()
4287 cinode->epoch = epoch; in smb3_set_oplock_level()