Lines Matching defs:path
229 static int ovl_mount_dir_noesc(const char *name, struct path *path)
237 err = kern_path(name, LOOKUP_FOLLOW, path);
261 static int ovl_mount_dir(const char *name, struct path *path)
268 err = ovl_mount_dir_noesc(tmp, path);
274 static int ovl_mount_dir_check(struct fs_context *fc, const struct path *path,
279 if (!d_is_dir(path->dentry))
288 if (sb_has_encoding(path->mnt->mnt_sb))
291 if (ovl_dentry_weird(path->dentry))
295 * Check whether upper path is read-only here to report failures
300 if (path->dentry->d_flags & DCACHE_OP_REAL)
302 if (__mnt_is_readonly(path->mnt))
337 struct path *path, char **pname)
347 swap(ctx->work, *path);
351 swap(ctx->upper, *path);
361 swap(l->path, *path);
373 struct path path;
380 err = ovl_mount_dir(name, &path);
382 err = ovl_mount_dir_noesc(name, &path);
386 err = ovl_mount_dir_check(fc, &path, layer, name, upper);
396 /* Store the user provided path string in ctx to show in mountinfo */
397 ovl_add_layer(fc, layer, &path, &name);
400 path_put(&path);
415 path_put(&l->path);
492 err = ovl_mount_dir(iter, &l->path);
496 err = ovl_mount_dir_check(fc, &l->path, Opt_lowerdir, iter, false);