diff options
author | 2016-01-15 16:57:22 -0800 | |
---|---|---|
committer | 2016-01-15 17:56:32 -0800 | |
commit | 7f43add451d2a0d235074b72d254ae266a6a023f (patch) | |
tree | 5fa15d58d7acf969f3bfc898250e0ec05eb10cd3 /include | |
parent | mm/vmalloc.c: use macro IS_ALIGNED to judge the aligment (diff) | |
download | linux-7f43add451d2a0d235074b72d254ae266a6a023f.tar.gz linux-7f43add451d2a0d235074b72d254ae266a6a023f.tar.bz2 linux-7f43add451d2a0d235074b72d254ae266a6a023f.zip |
mm/mlock.c: change can_do_mlock return value type to boolean
Since can_do_mlock only return 1 or 0, so make it boolean.
No functional change.
[akpm@linux-foundation.org: update declaration in mm.h]
Signed-off-by: Wang Xiaoqiang <wangxq10@lzu.edu.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 1d6ec55d8b25..f1cd22f2df1a 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1100,7 +1100,7 @@ static inline bool shmem_mapping(struct address_space *mapping) } #endif -extern int can_do_mlock(void); +extern bool can_do_mlock(void); extern int user_shm_lock(size_t, struct user_struct *); extern void user_shm_unlock(size_t, struct user_struct *); |