Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dca1dd30 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd: remove unused cache_for_each macro



This macro is unused.

Signed-off-by: default avatar"J. Bruce Fields" <bfields@citi.umich.edu>
Acked-by: default avatarNeil Brown <neilb@suse.de>
parent 45457e09
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -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)