Skip to content

Commit

Permalink
[PATCH] Permit multiple inclusion of linux/pagevec.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells authored and Linus Torvalds committed Jan 9, 2006
1 parent 53dbb26 commit 7885401
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/pagevec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 */

0 comments on commit 7885401

Please sign in to comment.