Lines Matching refs:oplock_info
30 static struct oplock_info *alloc_opinfo(struct ksmbd_work *work, in alloc_opinfo()
34 struct oplock_info *opinfo; in alloc_opinfo()
36 opinfo = kzalloc(sizeof(struct oplock_info), GFP_KERNEL); in alloc_opinfo()
57 static void lease_add_list(struct oplock_info *opinfo) in lease_add_list()
66 static void lease_del_list(struct oplock_info *opinfo) in lease_del_list()
91 static int alloc_lease(struct oplock_info *opinfo, struct lease_ctx_info *lctx) in alloc_lease()
113 static void free_lease(struct oplock_info *opinfo) in free_lease()
121 static void free_opinfo(struct oplock_info *opinfo) in free_opinfo()
130 struct oplock_info *opinfo; in opinfo_free_rcu()
132 opinfo = container_of(rcu_head, struct oplock_info, rcu_head); in opinfo_free_rcu()
136 struct oplock_info *opinfo_get(struct ksmbd_file *fp) in opinfo_get()
138 struct oplock_info *opinfo; in opinfo_get()
149 static struct oplock_info *opinfo_get_list(struct ksmbd_inode *ci) in opinfo_get_list()
151 struct oplock_info *opinfo; in opinfo_get_list()
157 opinfo = list_first_or_null_rcu(&ci->m_op_list, struct oplock_info, in opinfo_get_list()
166 void opinfo_put(struct oplock_info *opinfo) in opinfo_put()
174 static void opinfo_add(struct oplock_info *opinfo) in opinfo_add()
183 static void opinfo_del(struct oplock_info *opinfo) in opinfo_del()
227 int opinfo_write_to_read(struct oplock_info *opinfo) in opinfo_write_to_read()
251 int opinfo_read_handle_to_read(struct oplock_info *opinfo) in opinfo_read_handle_to_read()
266 int opinfo_write_to_none(struct oplock_info *opinfo) in opinfo_write_to_none()
289 int opinfo_read_to_none(struct oplock_info *opinfo) in opinfo_read_to_none()
311 int lease_read_to_write(struct oplock_info *opinfo) in lease_read_to_write()
336 static int lease_none_upgrade(struct oplock_info *opinfo, __le32 new_state) in lease_none_upgrade()
366 struct oplock_info *opinfo; in close_id_del_oplock()
400 static void grant_write_oplock(struct oplock_info *opinfo_new, int req_oplock, in grant_write_oplock()
423 static void grant_read_oplock(struct oplock_info *opinfo_new, in grant_read_oplock()
445 static void grant_none_oplock(struct oplock_info *opinfo_new, in grant_none_oplock()
458 static inline int compare_guid_key(struct oplock_info *opinfo, in compare_guid_key()
481 static struct oplock_info *same_client_has_lease(struct ksmbd_inode *ci, in same_client_has_lease()
487 struct oplock_info *opinfo; in same_client_has_lease()
488 struct oplock_info *m_opinfo = NULL; in same_client_has_lease()
542 static void wait_for_break_ack(struct oplock_info *opinfo) in wait_for_break_ack()
560 static void wake_up_oplock_break(struct oplock_info *opinfo) in wake_up_oplock_break()
568 static int oplock_break_pending(struct oplock_info *opinfo, int req_op_level) in oplock_break_pending()
681 static int smb2_oplock_break_noti(struct oplock_info *opinfo) in smb2_oplock_break_noti()
785 static int smb2_lease_break_noti(struct oplock_info *opinfo) in smb2_lease_break_noti()
839 static void wait_lease_breaking(struct oplock_info *opinfo) in wait_lease_breaking()
856 static int oplock_break(struct oplock_info *brk_opinfo, int req_op_level) in oplock_break()
931 struct oplock_info *opinfo; in destroy_lease_table()
961 struct oplock_info *opinfo; in find_same_lease_key()
1011 static void copy_lease(struct oplock_info *op1, struct oplock_info *op2) in copy_lease()
1024 static int add_lease_global_list(struct oplock_info *opinfo) in add_lease_global_list()
1054 static void set_oplock_level(struct oplock_info *opinfo, int level, in set_oplock_level()
1089 struct oplock_info *opinfo = NULL, *prev_opinfo = NULL; in smb_grant_oplock()
1122 struct oplock_info *m_opinfo; in smb_grant_oplock()
1214 struct oplock_info *brk_opinfo; in smb_break_all_write_oplock()
1241 struct oplock_info *op, *brk_op; in smb_break_all_levII_oplock()
1651 struct oplock_info *lookup_lease_in_table(struct ksmbd_conn *conn, in lookup_lease_in_table()
1654 struct oplock_info *opinfo = NULL, *ret_op = NULL; in lookup_lease_in_table()
1701 struct oplock_info *opinfo = opinfo_get(fp); in smb2_check_durable_oplock()