<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: NeilBrown &lt;neilb@cse.unsw.edu.au&gt;

This is important for update-in-place caches which may change from being
negative to posative.

Thanks to "J.  Bruce Fields" &lt;bfields@fieldses.org&gt; and Olaf Kirch
&lt;okir@suse.de&gt;


---

 25-akpm/include/linux/sunrpc/cache.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff -puN include/linux/sunrpc/cache.h~knfsd-2-of-10-make-sure-cache_negative-is-cleared-when-a-cache-entry-is-updates include/linux/sunrpc/cache.h
--- 25/include/linux/sunrpc/cache.h~knfsd-2-of-10-make-sure-cache_negative-is-cleared-when-a-cache-entry-is-updates	Tue May 18 15:27:39 2004
+++ 25-akpm/include/linux/sunrpc/cache.h	Tue May 18 15:27:39 2004
@@ -193,8 +193,11 @@ RTN *FNAME ARGS										\
 					t2 = tmp; tmp = new; new = t2;			\
 				}							\
 				if (test_bit(CACHE_NEGATIVE,  &amp;item-&gt;MEMBER.flags))	\
-					 set_bit(CACHE_NEGATIVE, &amp;tmp-&gt;MEMBER.flags);	\
-				else {UPDATE;}						\
+					set_bit(CACHE_NEGATIVE, &amp;tmp-&gt;MEMBER.flags);	\
+				else {							\
+					UPDATE;						\
+					clear_bit(CACHE_NEGATIVE, &amp;tmp-&gt;MEMBER.flags);	\
+				}							\
 			}								\
 			if (set||new) write_unlock(&amp;(DETAIL)-&gt;hash_lock);		\
 			else read_unlock(&amp;(DETAIL)-&gt;hash_lock);				\

_
</pre></body></html>