From: David Howells Date: Sun, 8 Jan 2006 09:02:37 +0000 (-0800) Subject: [PATCH] Permit multiple inclusion of linux/pagevec.h X-Git-Tag: v2.6.16-rc1~779 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=788540141f4549637e89aadca6e25cf25eb53383;p=linux-2.6 [PATCH] Permit multiple inclusion of linux/pagevec.h Make it possible to include linux/pagevec.h multiple times without incurring errors due to duplicate definitions. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index def32c5715..8eb7fa76c1 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h @@ -5,6 +5,9 @@ * pages. A pagevec is a multipage container which is used for that. */ +#ifndef _LINUX_PAGEVEC_H +#define _LINUX_PAGEVEC_H + /* 14 pointers + two long's align the pagevec structure to a power of two */ #define PAGEVEC_SIZE 14 @@ -83,3 +86,5 @@ static inline void pagevec_lru_add(struct pagevec *pvec) if (pagevec_count(pvec)) __pagevec_lru_add(pvec); } + +#endif /* _LINUX_PAGEVEC_H */