Whamcloud - gitweb
return 128 as filetype for cross-ref entry
[fs/lustre-release.git] / lustre / kernel_patches / patches / pag-basic-2.6.10-fc3.patch
1 --- linux-2.6.10-pag/arch/um/kernel/sys_call_table.c.pag        2005-07-15 14:18:10.000000000 -0600
2 +++ linux-2.6.10-pag/arch/um/kernel/sys_call_table.c    2005-07-18 11:20:54.000000000 -0600
3 @@ -306,6 +306,8 @@
4         [ __NR_utimes ] (syscall_handler_t *) sys_utimes,
5         [ __NR_fadvise64_64 ] (syscall_handler_t *) sys_fadvise64_64,
6         [ __NR_vserver ] (syscall_handler_t *) sys_ni_syscall,
7 +       [ __NR_newpag ] (syscall_handler_t *) sys_newpag,
8 +       [ __NR_getpag ] (syscall_handler_t *) sys_getpag,
9  
10         ARCH_SYSCALLS
11         [ LAST_SYSCALL + 1 ... NR_syscalls ] = 
12 --- linux-2.6.10-pag/arch/i386/kernel/entry.S.pag       2005-07-15 13:47:12.000000000 -0600
13 +++ linux-2.6.10-pag/arch/i386/kernel/entry.S   2005-07-18 11:18:45.000000000 -0600
14 @@ -907,5 +907,7 @@
15         .long sys_add_key
16         .long sys_request_key
17         .long sys_keyctl
18 +       .long sys_newpag
19 +       .long sys_getpag                /* 289,290 temporay added for lustre */
20  
21  syscall_table_size=(.-sys_call_table)
22 --- linux-2.6.10-pag/fs/fcntl.c.pag     2005-07-15 14:23:32.000000000 -0600
23 +++ linux-2.6.10-pag/fs/fcntl.c 2005-07-18 11:41:21.000000000 -0600
24 @@ -421,6 +421,17 @@
25  }
26  #endif
27  
28 +asmlinkage long sys_newpag(void)
29 +{
30 +       get_random_bytes(&current->pag, sizeof(current->pag));
31 +       return 0;
32 +}
33 +
34 +asmlinkage long sys_getpag(void)
35 +{
36 +       return current->pag;
37 +}
38 +
39  /* Table to convert sigio signal codes into poll band bitmaps */
40  
41  static long band_table[NSIGPOLL] = {
42 --- linux-2.6.10-pag/include/linux/sched.h.pag  2005-07-15 13:35:27.000000000 -0600
43 +++ linux-2.6.10-pag/include/linux/sched.h      2005-07-15 13:38:02.000000000 -0600
44 @@ -600,6 +600,7 @@
45  /* mm fault and swap info: this can arguably be seen as either mm-specific or thread-specific */
46         unsigned long min_flt, maj_flt;
47  /* process credentials */
48 +       unsigned long pag;
49         uid_t uid,euid,suid,fsuid;
50         gid_t gid,egid,sgid,fsgid;
51         struct group_info *group_info;
52 --- linux-2.6.10-pag/include/linux/syscalls.h.pag       2005-07-15 14:09:42.000000000 -0600
53 +++ linux-2.6.10-pag/include/linux/syscalls.h   2005-07-18 11:42:01.000000000 -0600
54 @@ -506,4 +506,7 @@
55  asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3,
56                            unsigned long arg4, unsigned long arg5);
57  
58 +asmlinkage long sys_newpag(void);
59 +asmlinkage long sys_getpag(void);
60 +
61  #endif
62 --- linux-2.6.10-pag/include/linux/init_task.h.pag      2005-07-15 14:39:07.000000000 -0600
63 +++ linux-2.6.10-pag/include/linux/init_task.h  2005-07-15 14:41:45.000000000 -0600
64 @@ -92,6 +92,7 @@
65         .real_timer     = {                                             \
66                 .function       = it_real_fn                            \
67         },                                                              \
68 +       .pag            = -1,                                           \
69         .group_info     = &init_groups,                                 \
70         .cap_effective  = CAP_INIT_EFF_SET,                             \
71         .cap_inheritable = CAP_INIT_INH_SET,                            \
72 --- linux-2.6.10-pag/include/asm-i386/unistd.h.pag      2005-07-15 13:55:46.000000000 -0600
73 +++ linux-2.6.10-pag/include/asm-i386/unistd.h  2005-07-18 11:43:10.000000000 -0600
74 @@ -294,8 +294,10 @@
75  #define __NR_add_key           286
76  #define __NR_request_key       287
77  #define __NR_keyctl            288
78 +#define __NR_newpag            289
79 +#define __NR_getpag            290
80  
81 -#define NR_syscalls 289
82 +#define NR_syscalls 291
83  
84  #ifndef __KERNEL_SYSCALLS_NO_ERRNO__
85  /*