From: Nicholas Krause <xerofoify@gmail.com>
To: akpm@linux-foundation.org
Cc: jack@suse.cz, kirill.shutemov@linux.intel.com, axboe@fb.com,
tj@kernel.org, Anna.Schumaker@netapp.com, hch@lst.de,
shhuiw@gmail.com, matthew.r.wilcox@intel.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] mm:Make the function madvise_behaviour_valid bool
Date: Fri, 26 Jun 2015 09:51:05 -0400 [thread overview]
Message-ID: <1435326665-20525-1-git-send-email-xerofoify@gmail.com> (raw)
This makes the function madvise_bahaviour_valid bool now due to
this particular function always returning the value of either one
or zero as its return value.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
mm/madvise.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index 64bb8a2..069e22d 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -385,7 +385,7 @@ madvise_vma(struct vm_area_struct *vma, struct vm_area_struct **prev,
}
}
-static int
+static bool
madvise_behavior_valid(int behavior)
{
switch (behavior) {
@@ -407,10 +407,10 @@ madvise_behavior_valid(int behavior)
#endif
case MADV_DONTDUMP:
case MADV_DODUMP:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}
--
2.1.4
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
reply other threads:[~2015-06-26 13:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435326665-20525-1-git-send-email-xerofoify@gmail.com \
--to=xerofoify@gmail.com \
--cc=Anna.Schumaker@netapp.com \
--cc=akpm@linux-foundation.org \
--cc=axboe@fb.com \
--cc=hch@lst.de \
--cc=jack@suse.cz \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=matthew.r.wilcox@intel.com \
--cc=shhuiw@gmail.com \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox