]> Git Repo - linux.git/commitdiff
[PATCH] Permit multiple inclusion of linux/pagevec.h
authorDavid Howells <[email protected]>
Sun, 8 Jan 2006 09:02:37 +0000 (01:02 -0800)
committerLinus Torvalds <[email protected]>
Mon, 9 Jan 2006 04:13:52 +0000 (20:13 -0800)
Make it possible to include linux/pagevec.h multiple times without
incurring errors due to duplicate definitions.

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/pagevec.h

index def32c5715bea2a257c398ce1e3eaa847d760667..8eb7fa76c1d025055683c6428388213e9ae2af2c 100644 (file)
@@ -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 */
This page took 0.054323 seconds and 4 git commands to generate.