Lines Matching refs:mnt_parent
230 struct dfs_mnt *mnt_parent = RT_NULL, *mnt_child = RT_NULL; in dfs_mount() local
263 mnt_parent = dfs_mnt_lookup(fullpath); /* Find parent mount point */ in dfs_mount()
266 if ((!mnt_parent && (strcmp(fullpath, "/") == 0 || strcmp(fullpath, "/dev") == 0)) in dfs_mount()
267 … || (mnt_parent && strcmp(fullpath, "/") == 0 && strcmp(mnt_parent->fullpath, fullpath) != 0)) in dfs_mount()
276 mnt_parent = dfs_mnt_create(fullpath); /* mnt->ref_count should be 1. */ in dfs_mount()
277 if (mnt_parent) in dfs_mount()
281 mnt_parent->fs_ops = type->fs_ops; in dfs_mount()
282 mnt_parent->dev_id = dev_id; in dfs_mount()
283 if (mnt_parent->fs_ops->mount) in dfs_mount()
286 ret = mnt_parent->fs_ops->mount(mnt_parent, rwflag, data); in dfs_mount()
292 mnt_child = mnt_parent; in dfs_mount()
301 dfs_mnt_unref(mnt_parent); in dfs_mount()
314 dfs_mnt_destroy(mnt_parent); in dfs_mount()
315 mnt_parent = RT_NULL; in dfs_mount()
324 dfs_mnt_destroy(mnt_parent); in dfs_mount()
325 mnt_parent = RT_NULL; in dfs_mount()
337 …else if (mnt_parent && (strcmp(mnt_parent->fullpath, fullpath) != 0)) /* Handle regular filesystem… in dfs_mount()
340 …mntpoint_dentry = dfs_dentry_lookup(mnt_parent, fullpath, 0); /* Find mount point directory entry … in dfs_mount()
365 dfs_mnt_insert(mnt_parent, mnt_child); in dfs_mount()
398 LOG_W("no mount point (%s) in file system: %s", fullpath, mnt_parent->fullpath); in dfs_mount()