X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fkernel_patches%2Fpatches%2Fvfs_gns-2.6-vanilla.patch;h=938e527d6e3f583148505632c6f4249eda46267a;hb=350abc09880fc4cc1085f462258bf6e0f7b933f2;hp=0cb55e6c4a6cb1057563b268de865d8830084ad6;hpb=89f9a5bced24ecb7c84040a1ed88dcef4384f7c6;p=fs%2Flustre-release.git diff --git a/lustre/kernel_patches/patches/vfs_gns-2.6-vanilla.patch b/lustre/kernel_patches/patches/vfs_gns-2.6-vanilla.patch index 0cb55e6..938e527 100644 --- a/lustre/kernel_patches/patches/vfs_gns-2.6-vanilla.patch +++ b/lustre/kernel_patches/patches/vfs_gns-2.6-vanilla.patch @@ -1,23 +1,3 @@ -diff -rupN linux-2.6.7/fs/namei.c linux-2.6.7.new/fs/namei.c ---- linux-2.6.7/fs/namei.c 2005-03-29 18:54:13.000000000 +0300 -+++ linux-2.6.7.new/fs/namei.c 2005-03-31 14:42:01.605302456 +0300 -@@ -422,6 +422,16 @@ static struct dentry * real_lookup(struc - result = dentry; - } - unlock_dir(dir, lock); -+ if (!IS_ERR(result)) { -+ spin_lock(&result->d_lock); -+ if (result->d_flags & DCACHE_GNS_PENDING) { -+ spin_unlock(&result->d_lock); -+ if (result->d_op && result->d_op->d_revalidate) -+ result->d_op->d_revalidate(result, nd); -+ } else { -+ spin_unlock(&result->d_lock); -+ } -+ } - return result; - } - diff -rupN linux-2.6.7/fs/namespace.c linux-2.6.7.new/fs/namespace.c --- linux-2.6.7/fs/namespace.c 2005-03-29 18:54:13.000000000 +0300 +++ linux-2.6.7.new/fs/namespace.c 2005-03-30 17:51:39.000000000 +0300