kNFSd - 5 of 7 - Change atomic_inc to cache_get twice.
Subsystems (2)
PATCH 1/1 kNFSd - 5 of 7 - Change atomic_inc to cache_get twice.
### Comments for ChangeSet
----------- Diffstat output ------------
./include/linux/sunrpc/cache.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/sunrpc/cache.h renamed from include/linux/sunrpc/cache.h~current~ +2 -2
@@ -173,7 +173,7 @@ RTN *FNAME ARGS \if (set && !INPLACE &&test_bit (CACHE_VALID , &tmp->MEMBER.flags) && !new) \break ; \ \ -atomic_inc (&tmp->MEMBER.refcnt); \ +cache_get (&tmp->MEMBER); \if (set) { \if (!INPLACE &&test_bit (CACHE_VALID , &tmp->MEMBER.flags))\ {/* need to swap in new */ \
@@ -221,7 +221,7 @@ RTN *FNAME ARGS \ new =kmalloc (sizeof (*new),GFP_KERNEL ); \if (new) { \cache_init (&new->MEMBER); \ -atomic_inc (&new->MEMBER.refcnt); \ +cache_get (&new->MEMBER); \INIT ; \ tmp = new; \ goto retry; \
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs