Whamcloud - gitweb
- many fixes in GNS code after Nikita's code review. They are the following:
[fs/lustre-release.git] / lustre / kernel_patches / patches / vfs_gns-2.6-vanilla.patch
index 0cb55e6..938e527 100644 (file)
@@ -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