mm/mempolicy.c: mpol_equal(): use bool
mpol_equal() logically returns a boolean. Use a bool type to slightly improve readability. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Stephen Wilson <wilsons@start.ca> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0c176d52b0
commit
fcfb4dcc96
2 changed files with 12 additions and 12 deletions
|
|
@ -164,11 +164,11 @@ static inline void mpol_get(struct mempolicy *pol)
|
|||
atomic_inc(&pol->refcnt);
|
||||
}
|
||||
|
||||
extern int __mpol_equal(struct mempolicy *a, struct mempolicy *b);
|
||||
static inline int mpol_equal(struct mempolicy *a, struct mempolicy *b)
|
||||
extern bool __mpol_equal(struct mempolicy *a, struct mempolicy *b);
|
||||
static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b)
|
||||
{
|
||||
if (a == b)
|
||||
return 1;
|
||||
return true;
|
||||
return __mpol_equal(a, b);
|
||||
}
|
||||
|
||||
|
|
@ -257,9 +257,9 @@ static inline int vma_migratable(struct vm_area_struct *vma)
|
|||
|
||||
struct mempolicy {};
|
||||
|
||||
static inline int mpol_equal(struct mempolicy *a, struct mempolicy *b)
|
||||
static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b)
|
||||
{
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline void mpol_put(struct mempolicy *p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue