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

Commit 78854014 authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

[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: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 53dbb26d
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -5,6 +5,9 @@
 * pages.  A pagevec is a multipage container which is used for that.
 * 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 */
/* 14 pointers + two long's align the pagevec structure to a power of two */
#define PAGEVEC_SIZE	14
#define PAGEVEC_SIZE	14


@@ -83,3 +86,5 @@ static inline void pagevec_lru_add(struct pagevec *pvec)
	if (pagevec_count(pvec))
	if (pagevec_count(pvec))
		__pagevec_lru_add(pvec);
		__pagevec_lru_add(pvec);
}
}

#endif /* _LINUX_PAGEVEC_H */