Commit 788540141f4549637e89aadca6e25cf25eb53383

Authored by David Howells
Committed by Linus Torvalds
1 parent 53dbb26dbc

[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 <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

include/linux/pagevec.h
... ... @@ -5,6 +5,9 @@
5 5 * pages. A pagevec is a multipage container which is used for that.
6 6 */
7 7  
  8 +#ifndef _LINUX_PAGEVEC_H
  9 +#define _LINUX_PAGEVEC_H
  10 +
8 11 /* 14 pointers + two long's align the pagevec structure to a power of two */
9 12 #define PAGEVEC_SIZE 14
10 13  
... ... @@ -83,4 +86,6 @@
83 86 if (pagevec_count(pvec))
84 87 __pagevec_lru_add(pvec);
85 88 }
  89 +
  90 +#endif /* _LINUX_PAGEVEC_H */