Lines Matching defs:con
71 struct hmdfs_lookup_ret *get_remote_inode_info(struct hmdfs_peer *con,
84 err = hmdfs_remote_getattr(con, dentry, flags, &getattr_ret);
116 struct hmdfs_peer *con = rw->con;
117 const struct cred *old_cred = hmdfs_override_creds(con->sbi->cred);
120 get_remote_dentry_file(dentry, con);
124 spin_lock(&con->sbi->async_readdir_work_lock);
126 empty = list_empty(&con->sbi->async_readdir_work_list);
127 spin_unlock(&con->sbi->async_readdir_work_lock);
130 peer_put(con);
134 wake_up_interruptible(&con->sbi->async_readdir_wq);
138 struct hmdfs_peer *con)
154 peer_get(con);
156 rw->con = con;
157 spin_lock(&con->sbi->async_readdir_work_lock);
159 list_add(&rw->head, &con->sbi->async_readdir_work_list);
160 spin_unlock(&con->sbi->async_readdir_work_lock);
161 queue_delayed_work(con->dentry_wq, &rw->dwork, 0);
164 void get_remote_dentry_file_sync(struct dentry *dentry, struct hmdfs_peer *con)
166 get_remote_dentry_file_in_wq(dentry, con);
167 flush_workqueue(con->dentry_wq);
170 struct hmdfs_lookup_ret *hmdfs_lookup_by_con(struct hmdfs_peer *con,
188 result = get_remote_inode_info(con, dentry,
190 get_remote_dentry_file_in_wq(dentry->d_parent, con);
195 if (hmdfs_cache_revalidate(READ_ONCE(con->conn_time),
196 con->device_id, dentry->d_parent)) {
198 con->device_id);
205 result = get_remote_inode_info(con, dentry, 0);
210 result = get_remote_inode_info(con, dentry, 0);
211 get_remote_dentry_file_in_wq(dentry->d_parent, con);
333 struct inode *fill_inode_remote(struct super_block *sb, struct hmdfs_peer *con,
341 inode = hmdfs_iget5_locked_remote(sb, con, res->i_ino);
355 hmdfs_remote_init_stash_status(con, inode, mode);
409 struct hmdfs_peer *con = NULL;
426 con = hmdfs_lookup_from_devid(sbi, device_id);
427 if (!con) {
439 lookup_result = hmdfs_lookup_by_con(con, child_dentry, &qstr, flags,
446 inode = fill_inode_remote(sb, con, lookup_result, parent_inode);
458 if (con)
459 peer_put(con);
524 hmdfs_info("find cache item failed, con:%llu", dev_id);
578 struct hmdfs_peer *con = info->conn;
580 if (!con) {
581 hmdfs_warning("qpb_debug: con is null!");
585 err = hmdfs_mkdir_remote_dentry(con, dentry, mode);
587 create_in_cache_file(con->device_id, dentry);
649 struct hmdfs_peer *con = info->conn;
651 if (!con) {
652 hmdfs_warning("qpb_debug: con is null!");
656 err = hmdfs_create_remote_dentry(con, dentry, mode, want_excl);
658 create_in_cache_file(con->device_id, dentry);
692 struct hmdfs_peer *con = info->conn;
694 if (!con)
702 err = hmdfs_rmdir_remote_dentry(con, dentry);
790 struct hmdfs_peer *con = info->conn;
821 con->device_id);
823 con, relative_old_dir_path, old_dentry_d_name,
827 rename_in_cache_file(con->device_id, old_dentry,
830 if ((con->status == NODE_STAT_ONLINE)) {
832 con, relative_old_dir_path, old_dentry_d_name,
836 rename_in_cache_file(con->device_id, old_dentry,