projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e5448a
)
page-flags: trivial cleanup for PageTrans* helpers
author
Kirill A. Shutemov
<
[email protected]
>
Sat, 16 Jan 2016 00:51:13 +0000
(16:51 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 16 Jan 2016 01:56:32 +0000
(17:56 -0800)
Use TESTPAGEFLAG_FALSE() to get it a bit cleaner.
Signed-off-by: Kirill A. Shutemov <
[email protected]
>
Cc: Andrea Arcangeli <
[email protected]
>
Cc: Hugh Dickins <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc: Vlastimil Babka <
[email protected]
>
Cc: Christoph Lameter <
[email protected]
>
Cc: Naoya Horiguchi <
[email protected]
>
Cc: Steve Capper <
[email protected]
>
Cc: "Aneesh Kumar K.V" <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Cc: Michal Hocko <
[email protected]
>
Cc: Jerome Marchand <
[email protected]
>
Cc: Jérôme Glisse <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/page-flags.h
patch
|
blob
|
history
diff --git
a/include/linux/page-flags.h
b/include/linux/page-flags.h
index bb53c7b863152468196a390eb269449a03949e4d..45792d01edea47f3f44bd464a4fd1f72503152a7 100644
(file)
--- a/
include/linux/page-flags.h
+++ b/
include/linux/page-flags.h
@@
-485,21
+485,9
@@
static inline int PageTransTail(struct page *page)
}
#else
-
-static inline int PageTransHuge(struct page *page)
-{
- return 0;
-}
-
-static inline int PageTransCompound(struct page *page)
-{
- return 0;
-}
-
-static inline int PageTransTail(struct page *page)
-{
- return 0;
-}
+TESTPAGEFLAG_FALSE(TransHuge)
+TESTPAGEFLAG_FALSE(TransCompound)
+TESTPAGEFLAG_FALSE(TransTail)
#endif
/*