Home
last modified time | relevance | path

Searched refs:opinfo (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/fs/smb/server/
Doplock.c35 struct oplock_info *opinfo; in alloc_opinfo() local
37 opinfo = kzalloc(sizeof(struct oplock_info), GFP_KERNEL); in alloc_opinfo()
38 if (!opinfo) in alloc_opinfo()
41 opinfo->sess = sess; in alloc_opinfo()
42 opinfo->conn = conn; in alloc_opinfo()
43 opinfo->level = SMB2_OPLOCK_LEVEL_NONE; in alloc_opinfo()
44 opinfo->op_state = OPLOCK_STATE_NONE; in alloc_opinfo()
45 opinfo->pending_break = 0; in alloc_opinfo()
46 opinfo->fid = id; in alloc_opinfo()
47 opinfo->Tid = Tid; in alloc_opinfo()
[all …]
Doplock.h96 int opinfo_write_to_read(struct oplock_info *opinfo);
97 int opinfo_read_handle_to_read(struct oplock_info *opinfo);
98 int opinfo_write_to_none(struct oplock_info *opinfo);
99 int opinfo_read_to_none(struct oplock_info *opinfo);
103 void opinfo_put(struct oplock_info *opinfo);
109 int lease_read_to_write(struct oplock_info *opinfo);
Dvfs_cache.c684 struct oplock_info *opinfo = opinfo_get(fp); in is_reconnectable() local
687 if (!opinfo) in is_reconnectable()
690 if (opinfo->op_state != OPLOCK_STATE_NONE) { in is_reconnectable()
691 opinfo_put(opinfo); in is_reconnectable()
697 else if (fp->is_durable && opinfo->is_lease && in is_reconnectable()
698 opinfo->o_lease->state & SMB2_LEASE_HANDLE_CACHING_LE) in is_reconnectable()
701 else if (fp->is_durable && opinfo->level == SMB2_OPLOCK_LEVEL_BATCH) in is_reconnectable()
704 opinfo_put(opinfo); in is_reconnectable()
Dsmb2pdu.c2834 struct oplock_info *opinfo; in smb2_open() local
3547 opinfo = rcu_dereference(fp->f_opinfo); in smb2_open()
3548 rsp->OplockLevel = opinfo != NULL ? opinfo->level : 0; in smb2_open()
3574 if (opinfo && opinfo->is_lease) { in smb2_open()
3578 name, opinfo->o_lease->state); in smb2_open()
3583 create_lease_buf(rsp->Buffer, opinfo->o_lease); in smb2_open()
8319 struct oplock_info *opinfo = NULL; in smb20_oplock_break_ack() local
8341 opinfo = opinfo_get(fp); in smb20_oplock_break_ack()
8342 if (!opinfo) { in smb20_oplock_break_ack()
8350 if (opinfo->level == SMB2_OPLOCK_LEVEL_NONE) { in smb20_oplock_break_ack()
[all …]