Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dca1dd30ce0a6234acc751bb90efba1b49079669
Commit:     dca1dd30ce0a6234acc751bb90efba1b49079669
Parent:     45457e0916f8253691a44d3574949b6d3d5872b1
Author:     J. Bruce Fields <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 12 15:30:32 2007 -0400
Committer:  J. Bruce Fields <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 18:31:55 2007 -0400

    nfsd: remove unused cache_for_each macro
    
    This macro is unused.
    
    Signed-off-by: "J. Bruce Fields" <[EMAIL PROTECTED]>
    Acked-by:  Neil Brown <[EMAIL PROTECTED]>
---
 include/linux/sunrpc/cache.h |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h
index 3699dff..bd7a6b0 100644
--- a/include/linux/sunrpc/cache.h
+++ b/include/linux/sunrpc/cache.h
@@ -136,16 +136,6 @@ sunrpc_cache_update(struct cache_detail *detail,
                    struct cache_head *new, struct cache_head *old, int hash);
 
 
-#define cache_for_each(pos, detail, index, member)                             
                \
-       for (({read_lock(&(detail)->hash_lock); index = (detail)->hash_size;}) 
;                \
-            ({if (index==0)read_unlock(&(detail)->hash_lock); index--;});      
                \
-               )                                                               
                \
-               for (pos = container_of((detail)->hash_table[index], 
typeof(*pos), member);     \
-                    &pos->member;                                              
                \
-                    pos = container_of(pos->member.next, typeof(*pos), member))
-
-            
-
 extern void cache_clean_deferred(void *owner);
 
 static inline struct cache_head  *cache_get(struct cache_head *h)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to