aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/mlock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/mlock.c b/mm/mlock.c
index 9197b6721a1e..e1e2b1207bf2 100644
--- a/mm/mlock.c
+++ b/mm/mlock.c
@@ -24,13 +24,13 @@
24 24
25#include "internal.h" 25#include "internal.h"
26 26
27int can_do_mlock(void) 27bool can_do_mlock(void)
28{ 28{
29 if (rlimit(RLIMIT_MEMLOCK) != 0) 29 if (rlimit(RLIMIT_MEMLOCK) != 0)
30 return 1; 30 return true;
31 if (capable(CAP_IPC_LOCK)) 31 if (capable(CAP_IPC_LOCK))
32 return 1; 32 return true;
33 return 0; 33 return false;
34} 34}
35EXPORT_SYMBOL(can_do_mlock); 35EXPORT_SYMBOL(can_do_mlock);
36 36