Lines Matching defs:path

32 /* Head and path in stash file are aligned with HMDFS_STASH_BLK_SIZE */
103 struct path src_dir_path;
104 struct path dst_root_path;
150 struct path *,
206 static struct file *hmdfs_new_stash_file(struct path *d_path, const char *cid)
211 struct path stash;
297 if (strlen(cache->path) == 0) {
304 hmdfs_err("peer 0x%x:0x%llx inode 0x%llx lost %lld pages due to no path",
322 /* Write path */
324 written = kernel_write(cache->cache_file, cache->path, cache->path_len,
327 hmdfs_err("stash peer 0x%x:0x%llx ino 0x%llx write path len %u err %zd",
580 /* Needs full path in hmdfs, will be a device-view path */
581 cache->path = dentry_path_raw(stash_dentry, cache->path_buf,
584 if (IS_ERR(cache->path)) {
585 err = PTR_ERR(cache->path);
586 hmdfs_err("peer 0x%x:0x%llx inode 0x%llx gen path err %d",
596 cache->path = cache->path_buf;
600 cache->path_len = strlen(cache->path) + 1;
941 static struct file *hmdfs_open_stash_dir(struct path *d_path, const char *cid)
947 struct path peer_path;
1230 /* Read path */
1236 hmdfs_err("peer 0x%x:0x%llx ino 0x%llx read path err %d",
1242 hmdfs_err("peer 0x%x:0x%llx ino 0x%llx read path not end with \\0",
1246 /* TODO: Pick a valid path from all paths */
1533 unsigned int seq, struct path *src_dir,
1537 struct path dst_root;
1581 static struct file *hmdfs_open_stash_file(struct path *p_path, char *name)
1587 struct path c_path;
1639 unsigned int seq, struct path *dir,
1697 struct path *dir,
1772 struct path dir;
2038 struct path parent;
2130 struct path path;
2131 struct path *stash_path = NULL;
2152 path_str, 0, &path);
2155 if (hmdfs_is_reg(path.dentry)) {
2164 d_inode(path.dentry)->i_mode);
2167 path_put(&path);