Index: linux-2.6.22.5/fs/dcache.c =================================================================== --- linux-2.6.22.5.orig/fs/dcache.c 2007-08-22 17:23:54.000000000 -0600 +++ linux-2.6.22.5/fs/dcache.c 2008-02-21 00:56:09.000000000 -0700 @@ -245,6 +245,13 @@ spin_unlock(&dcache_lock); return 0; } + + /* network invalidation by Lustre */ + if (dentry->d_flags & DCACHE_LUSTRE_INVALID) { + spin_unlock(&dcache_lock); + return 0; + } + /* * Check whether to do a partial shrink_dcache * to get rid of unused child entries. Index: linux-2.6.22.5/include/linux/dcache.h =================================================================== --- linux-2.6.22.5.orig/include/linux/dcache.h 2007-08-22 17:23:54.000000000 -0600 +++ linux-2.6.22.5/include/linux/dcache.h 2008-02-21 00:56:09.000000000 -0700 @@ -174,6 +174,7 @@ #define DCACHE_REFERENCED 0x0008 /* Recently used, don't discard. */ #define DCACHE_UNHASHED 0x0010 +#define DCACHE_LUSTRE_INVALID 0x0040 /* Lustre invalidated */ #define DCACHE_INOTIFY_PARENT_WATCHED 0x0020 /* Parent inode is watched */