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>
This commit is contained in:

committed by
Linus Torvalds

parent
61e165578d
commit
7f43add451
@@ -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 *);
|
||||
|
||||
|
Reference in New Issue
Block a user