From dea163303280eeb25b65785ba7798a48128585d5 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 21 Aug 2002 22:25:14 +0000 Subject: [PATCH] Add target data for symlinks to intent. --- lustre/patches/patch-2.4.18 | 3 ++- lustre/patches/patch-2.4.18-chaos12 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/patches/patch-2.4.18 b/lustre/patches/patch-2.4.18 index efeddfb..f30ecd6 100644 --- a/lustre/patches/patch-2.4.18 +++ b/lustre/patches/patch-2.4.18 @@ -966,11 +966,12 @@ from = getname(oldname); if(IS_ERR(from)) -@@ -1557,10 +1661,12 @@ +@@ -1557,10 +1661,13 @@ error = path_walk(to, &nd); if (error) goto out; - dentry = lookup_create(&nd, 0); ++ it.it_data = from; + dentry = lookup_create(&nd, 0, &it); error = PTR_ERR(dentry); if (!IS_ERR(dentry)) { diff --git a/lustre/patches/patch-2.4.18-chaos12 b/lustre/patches/patch-2.4.18-chaos12 index 46f227e..57a6d09 100644 --- a/lustre/patches/patch-2.4.18-chaos12 +++ b/lustre/patches/patch-2.4.18-chaos12 @@ -992,11 +992,12 @@ from = getname(oldname); if(IS_ERR(from)) -@@ -1586,10 +1701,12 @@ +@@ -1586,10 +1701,13 @@ error = path_lookup(to, LOOKUP_PARENT, &nd); if (error) goto out; - dentry = lookup_create(&nd, 0); ++ it.it_data = from; + dentry = lookup_create(&nd, 0, &it); error = PTR_ERR(dentry); if (!IS_ERR(dentry)) { -- 1.8.3.1