diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mlock.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -24,13 +24,13 @@ #include "internal.h" -int can_do_mlock(void) +bool can_do_mlock(void) { if (rlimit(RLIMIT_MEMLOCK) != 0) - return 1; + return true; if (capable(CAP_IPC_LOCK)) - return 1; - return 0; + return true; + return false; } EXPORT_SYMBOL(can_do_mlock); |