Home
last modified time | relevance | path

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

/linux/fs/smb/server/
H A Doplock.c56 struct oplock_info *opinfo; in lease_break_in_progress() local
60 list_for_each_entry(opinfo, &lease->open_list, lease_entry) { in lease_break_in_progress()
61 if (opinfo->op_state == OPLOCK_ACK_WAIT) { in lease_break_in_progress()
83 struct oplock_info *opinfo; in alloc_opinfo() local
85 opinfo = kzalloc_obj(struct oplock_info, KSMBD_DEFAULT_GFP); in alloc_opinfo()
86 if (!opinfo) in alloc_opinfo()
89 opinfo->sess = sess; in alloc_opinfo()
90 opinfo->conn = ksmbd_conn_get(work->conn); in alloc_opinfo()
91 opinfo->level = SMB2_OPLOCK_LEVEL_NONE; in alloc_opinfo()
92 opinfo->op_state = OPLOCK_STATE_NONE; in alloc_opinfo()
[all …]
H A Doplock.h108 int opinfo_write_to_read(struct oplock_info *opinfo);
109 int opinfo_read_handle_to_read(struct oplock_info *opinfo);
110 int opinfo_write_to_none(struct oplock_info *opinfo);
111 int opinfo_read_to_none(struct oplock_info *opinfo);
115 void opinfo_put(struct oplock_info *opinfo);
122 int lease_read_to_write(struct oplock_info *opinfo);
H A Dvfs_cache.c122 struct oplock_info *opinfo; in proc_show_files() local
132 opinfo = rcu_dereference(fp->f_opinfo); in proc_show_files()
133 if (opinfo) { in proc_show_files()
139 if (opinfo->is_lease) { in proc_show_files()
142 level = le32_to_cpu(opinfo->o_lease->state); in proc_show_files()
146 level = opinfo->level; in proc_show_files()
1036 struct oplock_info *opinfo; in ksmbd_close_fd_app_instance_id() local
1043 opinfo = opinfo_get(fp); in ksmbd_close_fd_app_instance_id()
1044 if (!opinfo) in ksmbd_close_fd_app_instance_id()
1048 if (!opinfo->conn) { in ksmbd_close_fd_app_instance_id()
[all …]
H A Dsmb2pdu.c3698 struct oplock_info *opinfo; in smb2_check_durable_replay() local
3710 opinfo = opinfo_get(fp); in smb2_check_durable_replay()
3711 if (!opinfo) in smb2_check_durable_replay()
3714 if (opinfo->sess && opinfo->sess->id != work->sess->id) { in smb2_check_durable_replay()
3719 if (opinfo->is_lease) { in smb2_check_durable_replay()
3721 memcmp(opinfo->o_lease->lease_key, lc->lease_key, in smb2_check_durable_replay()
3732 if (fp->is_durable && opinfo->level != SMB2_OPLOCK_LEVEL_BATCH) in smb2_check_durable_replay()
3736 opinfo_put(opinfo); in smb2_check_durable_replay()
4140 struct oplock_info *opinfo; in smb2_open() local
5112 opinfo = opinfo_get(fp); in smb2_open()
[all …]