This introduces the symmetric function to path_put() for getting a reference to the dentry and vfsmount of a struct path in the right order. Signed-off-by: Jan Blunck Signed-off-by: Andreas Gruenbacher Acked-by: Christoph Hellwig --- Index: b/fs/namei.c =================================================================== Signed-off-by: Andrew Morton --- fs/unionfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/unionfs/super.c~introduce-path_get-unionfs fs/unionfs/super.c --- a/fs/unionfs/super.c~introduce-path_get-unionfs +++ a/fs/unionfs/super.c @@ -556,7 +556,7 @@ static int unionfs_remount_fs(struct sup memcpy(tmp_lower_paths, UNIONFS_D(sb->s_root)->lower_paths, cur_branches * sizeof(struct path)); for (i = 0; i < cur_branches; i++) - pathget(&tmp_lower_paths[i]); /* drop refs at end of fxn */ + path_get(&tmp_lower_paths[i]); /* drop refs at end of fxn */ /******************************************************************* * For each branch command, do path_lookup on the requested branch, _