Lines Matching refs:ksmbd_file
92 static struct ksmbd_inode *ksmbd_inode_lookup(struct ksmbd_file *fp) in ksmbd_inode_lookup()
125 bool ksmbd_inode_pending_delete(struct ksmbd_file *fp) in ksmbd_inode_pending_delete()
130 void ksmbd_set_inode_pending_delete(struct ksmbd_file *fp) in ksmbd_set_inode_pending_delete()
135 void ksmbd_clear_inode_pending_delete(struct ksmbd_file *fp) in ksmbd_clear_inode_pending_delete()
140 void ksmbd_fd_set_delete_on_close(struct ksmbd_file *fp, in ksmbd_fd_set_delete_on_close()
166 static int ksmbd_inode_init(struct ksmbd_inode *ci, struct ksmbd_file *fp) in ksmbd_inode_init()
180 static struct ksmbd_inode *ksmbd_inode_get(struct ksmbd_file *fp) in ksmbd_inode_get()
253 static void __ksmbd_inode_close(struct ksmbd_file *fp) in __ksmbd_inode_close()
285 static void __ksmbd_remove_durable_fd(struct ksmbd_file *fp) in __ksmbd_remove_durable_fd()
293 static void ksmbd_remove_durable_fd(struct ksmbd_file *fp) in ksmbd_remove_durable_fd()
302 static void __ksmbd_remove_fd(struct ksmbd_file_table *ft, struct ksmbd_file *fp) in __ksmbd_remove_fd()
316 static void __ksmbd_close_fd(struct ksmbd_file_table *ft, struct ksmbd_file *fp) in __ksmbd_close_fd()
351 static struct ksmbd_file *ksmbd_fp_get(struct ksmbd_file *fp) in ksmbd_fp_get()
361 static struct ksmbd_file *__ksmbd_lookup_fd(struct ksmbd_file_table *ft, in __ksmbd_lookup_fd()
364 struct ksmbd_file *fp; in __ksmbd_lookup_fd()
377 static void __put_fd_final(struct ksmbd_work *work, struct ksmbd_file *fp) in __put_fd_final()
383 static void set_close_state_blocked_works(struct ksmbd_file *fp) in set_close_state_blocked_works()
398 struct ksmbd_file *fp; in ksmbd_close_fd()
427 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp) in ksmbd_fd_put()
437 static bool __sanity_check(struct ksmbd_tree_connect *tcon, struct ksmbd_file *fp) in __sanity_check()
446 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd()
451 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast()
453 struct ksmbd_file *fp = __ksmbd_lookup_fd(&work->sess->file_table, id); in ksmbd_lookup_fd_fast()
462 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, in ksmbd_lookup_fd_slow()
465 struct ksmbd_file *fp; in ksmbd_lookup_fd_slow()
484 struct ksmbd_file *ksmbd_lookup_global_fd(unsigned long long id) in ksmbd_lookup_global_fd()
489 struct ksmbd_file *ksmbd_lookup_durable_fd(unsigned long long id) in ksmbd_lookup_durable_fd()
491 struct ksmbd_file *fp; in ksmbd_lookup_durable_fd()
505 void ksmbd_put_durable_fd(struct ksmbd_file *fp) in ksmbd_put_durable_fd()
513 struct ksmbd_file *ksmbd_lookup_fd_cguid(char *cguid) in ksmbd_lookup_fd_cguid()
515 struct ksmbd_file *fp = NULL; in ksmbd_lookup_fd_cguid()
532 struct ksmbd_file *ksmbd_lookup_fd_inode(struct dentry *dentry) in ksmbd_lookup_fd_inode()
534 struct ksmbd_file *lfp; in ksmbd_lookup_fd_inode()
561 static void __open_id_set(struct ksmbd_file *fp, u64 id, int type) in __open_id_set()
569 static int __open_id(struct ksmbd_file_table *ft, struct ksmbd_file *fp, in __open_id()
597 unsigned int ksmbd_open_durable_fd(struct ksmbd_file *fp) in ksmbd_open_durable_fd()
603 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp) in ksmbd_open_fd()
605 struct ksmbd_file *fp; in ksmbd_open_fd()
647 void ksmbd_update_fstate(struct ksmbd_file_table *ft, struct ksmbd_file *fp, in ksmbd_update_fstate()
662 struct ksmbd_file *fp)) in __close_file_table_ids()
665 struct ksmbd_file *fp; in __close_file_table_ids()
682 static inline bool is_reconnectable(struct ksmbd_file *fp) in is_reconnectable()
709 struct ksmbd_file *fp) in tree_conn_fd_check()
735 struct ksmbd_file *fp; in ksmbd_scavenger_dispose_dh()
737 fp = list_first_entry(head, struct ksmbd_file, node); in ksmbd_scavenger_dispose_dh()
745 struct ksmbd_file *fp = NULL; in ksmbd_durable_scavenger()
851 struct ksmbd_file *fp) in session_fd_check()
908 struct ksmbd_file *fp = NULL; in ksmbd_free_global_file_table()
921 struct ksmbd_file *fp, char *name) in ksmbd_validate_name_reconnect()
946 int ksmbd_reopen_durable_fd(struct ksmbd_work *work, struct ksmbd_file *fp) in ksmbd_reopen_durable_fd()
1009 sizeof(struct ksmbd_file), 0, in ksmbd_init_file_cache()