move_pages: just use calloc
[trinity.git] / syscalls / swap.c
blobc28a54a2d62e677a9226c35575b176b5b39e7458
1 /*
2 * SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags
3 */
4 #include <sys/swap.h>
5 #include "sanitise.h"
6 #include "compat.h"
8 struct syscallentry syscall_swapon = {
9 .name = "swapon",
10 .num_args = 2,
11 .arg1name = "path",
12 .arg1type = ARG_PATHNAME,
13 .arg2name = "swap_flags",
14 .arg2type = ARG_LIST,
15 .arg2list = {
16 .num = 2,
17 .values = { SWAP_FLAG_PREFER, SWAP_FLAG_DISCARD },
19 .group = GROUP_VFS,
24 * SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
26 struct syscallentry syscall_swapoff = {
27 .name = "swapoff",
28 .num_args = 1,
29 .arg1name = "path",
30 .arg1type = ARG_PATHNAME,
31 .group = GROUP_VFS,