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)
210 struct path stash;
287 if (strlen(cache->path) == 0) {
294 hmdfs_err("peer 0x%x:0x%llx inode 0x%llx lost %lld pages due to no path",
312 /* Write path */
314 written = kernel_write(cache->cache_file, cache->path, cache->path_len,
317 hmdfs_err("stash peer 0x%x:0x%llx ino 0x%llx write path len %u err %zd",
570 /* Needs full path in hmdfs, will be a device-view path */
571 cache->path = dentry_path_raw(stash_dentry, cache->path_buf,
574 if (IS_ERR(cache->path)) {
575 err = PTR_ERR(cache->path);
576 hmdfs_err("peer 0x%x:0x%llx inode 0x%llx gen path err %d",
586 cache->path = cache->path_buf;
590 cache->path_len = strlen(cache->path) + 1;
931 static struct file *hmdfs_open_stash_dir(struct path *d_path, const char *cid)
937 struct path peer_path;
1220 /* Read path */
1226 hmdfs_err("peer 0x%x:0x%llx ino 0x%llx read path err %d",
1232 hmdfs_err("peer 0x%x:0x%llx ino 0x%llx read path not end with \\0",
1236 /* TODO: Pick a valid path from all paths */
1518 unsigned int seq, struct path *src_dir,
1522 struct path dst_root;
1566 static struct file *hmdfs_open_stash_file(struct path *p_path, char *name)
1572 struct path c_path;
1624 unsigned int seq, struct path *dir,
1682 struct path *dir,
1757 struct path dir;
2023 struct path parent;
2115 struct path path;
2116 struct path *stash_path = NULL;
2137 path_str, 0, &path);
2140 if (hmdfs_is_reg(path.dentry)) {
2149 d_inode(path.dentry)->i_mode);
2152 path_put(&path);