Home
last modified time | relevance | path

Searched refs:new_parent (Results 1 – 2 of 2) sorted by relevance

/fs/xfs/
Dxfs_rename.c107 int new_parent; /* moving to a new dir */ in xfs_rename() local
133 new_parent = (src_dp != target_dp); in xfs_rename()
140 if (target_ip == NULL && new_parent && in xfs_rename()
193 if (new_parent) { in xfs_rename()
242 if (new_parent && src_is_directory) { in xfs_rename()
301 if (new_parent && src_is_directory) { in xfs_rename()
328 if (src_is_directory && (new_parent || target_ip != NULL)) { in xfs_rename()
346 if (new_parent) in xfs_rename()
/fs/sysfs/
Ddir.c861 struct dentry *old_parent, *new_parent = NULL; in sysfs_move_dir() local
882 new_parent = sysfs_get_dentry(new_parent_sd); in sysfs_move_dir()
883 if (IS_ERR(new_parent)) { in sysfs_move_dir()
884 error = PTR_ERR(new_parent); in sysfs_move_dir()
885 new_parent = NULL; in sysfs_move_dir()
891 if (!mutex_trylock(&new_parent->d_inode->i_mutex)) { in sysfs_move_dir()
902 new_dentry = d_alloc_name(new_parent, sd->s_name); in sysfs_move_dir()
919 mutex_unlock(&new_parent->d_inode->i_mutex); in sysfs_move_dir()
922 dput(new_parent); in sysfs_move_dir()