Lines Matching refs:oplock_info
30 static struct oplock_info *alloc_opinfo(struct ksmbd_work *work, in alloc_opinfo()
35 struct oplock_info *opinfo; in alloc_opinfo()
37 opinfo = kzalloc(sizeof(struct oplock_info), GFP_KERNEL); in alloc_opinfo()
58 static void lease_add_list(struct oplock_info *opinfo) in lease_add_list()
67 static void lease_del_list(struct oplock_info *opinfo) in lease_del_list()
92 static int alloc_lease(struct oplock_info *opinfo, struct lease_ctx_info *lctx) in alloc_lease()
115 static void free_lease(struct oplock_info *opinfo) in free_lease()
123 static void free_opinfo(struct oplock_info *opinfo) in free_opinfo()
132 struct oplock_info *opinfo; in opinfo_free_rcu()
134 opinfo = container_of(rcu_head, struct oplock_info, rcu_head); in opinfo_free_rcu()
138 struct oplock_info *opinfo_get(struct ksmbd_file *fp) in opinfo_get()
140 struct oplock_info *opinfo; in opinfo_get()
151 static struct oplock_info *opinfo_get_list(struct ksmbd_inode *ci) in opinfo_get_list()
153 struct oplock_info *opinfo; in opinfo_get_list()
159 opinfo = list_first_or_null_rcu(&ci->m_op_list, struct oplock_info, in opinfo_get_list()
179 static void opinfo_conn_put(struct oplock_info *opinfo) in opinfo_conn_put()
197 void opinfo_put(struct oplock_info *opinfo) in opinfo_put()
205 static void opinfo_add(struct oplock_info *opinfo) in opinfo_add()
214 static void opinfo_del(struct oplock_info *opinfo) in opinfo_del()
258 int opinfo_write_to_read(struct oplock_info *opinfo) in opinfo_write_to_read()
282 int opinfo_read_handle_to_read(struct oplock_info *opinfo) in opinfo_read_handle_to_read()
297 int opinfo_write_to_none(struct oplock_info *opinfo) in opinfo_write_to_none()
320 int opinfo_read_to_none(struct oplock_info *opinfo) in opinfo_read_to_none()
342 int lease_read_to_write(struct oplock_info *opinfo) in lease_read_to_write()
367 static int lease_none_upgrade(struct oplock_info *opinfo, __le32 new_state) in lease_none_upgrade()
397 struct oplock_info *opinfo; in close_id_del_oplock()
431 static void grant_write_oplock(struct oplock_info *opinfo_new, int req_oplock, in grant_write_oplock()
454 static void grant_read_oplock(struct oplock_info *opinfo_new, in grant_read_oplock()
476 static void grant_none_oplock(struct oplock_info *opinfo_new, in grant_none_oplock()
489 static inline int compare_guid_key(struct oplock_info *opinfo, in compare_guid_key()
512 static struct oplock_info *same_client_has_lease(struct ksmbd_inode *ci, in same_client_has_lease()
518 struct oplock_info *opinfo; in same_client_has_lease()
519 struct oplock_info *m_opinfo = NULL; in same_client_has_lease()
579 static void wait_for_break_ack(struct oplock_info *opinfo) in wait_for_break_ack()
597 static void wake_up_oplock_break(struct oplock_info *opinfo) in wake_up_oplock_break()
605 static int oplock_break_pending(struct oplock_info *opinfo, int req_op_level) in oplock_break_pending()
704 static int smb2_oplock_break_noti(struct oplock_info *opinfo) in smb2_oplock_break_noti()
805 static int smb2_lease_break_noti(struct oplock_info *opinfo) in smb2_lease_break_noti()
859 static void wait_lease_breaking(struct oplock_info *opinfo) in wait_lease_breaking()
876 static int oplock_break(struct oplock_info *brk_opinfo, int req_op_level) in oplock_break()
952 struct oplock_info *opinfo; in destroy_lease_table()
982 struct oplock_info *opinfo; in find_same_lease_key()
1032 static void copy_lease(struct oplock_info *op1, struct oplock_info *op2) in copy_lease()
1047 static int add_lease_global_list(struct oplock_info *opinfo) in add_lease_global_list()
1077 static void set_oplock_level(struct oplock_info *opinfo, int level, in set_oplock_level()
1097 struct oplock_info *opinfo; in smb_send_parent_lease_break_noti()
1138 struct oplock_info *opinfo; in smb_lazy_parent_lease_break_close()
1195 struct oplock_info *opinfo = NULL, *prev_opinfo = NULL; in smb_grant_oplock()
1230 struct oplock_info *m_opinfo; in smb_grant_oplock()
1324 struct oplock_info *brk_opinfo; in smb_break_all_write_oplock()
1351 struct oplock_info *op, *brk_op; in smb_break_all_levII_oplock()
1770 struct oplock_info *lookup_lease_in_table(struct ksmbd_conn *conn, in lookup_lease_in_table()
1773 struct oplock_info *opinfo = NULL, *ret_op = NULL; in lookup_lease_in_table()