#define KALLOC_TYPE GFP_KERNEL
#endif
+#ifdef LINUX_KEYRING_SUPPORT
+# ifndef KEY_ALLOC_NOT_IN_QUOTA
+# define KEY_ALLOC_NOT_IN_QUOTA 1
+# endif
+# ifndef KEY_ALLOC_IN_QUOTA
+# define KEY_ALLOC_IN_QUOTA 0
+# endif
+#endif
#endif
perm |= KEY_USR_VIEW | KEY_USR_SEARCH;
#if defined(KEY_ALLOC_NEEDS_STRUCT_TASK)
- key = key_alloc(&key_type_afs_pag, "_pag", 0, 0, current, perm, 1);
+ key = key_alloc(&key_type_afs_pag, "_pag", 0, 0, current,
+ perm, KEY_ALLOC_NOT_IN_QUOTA);
#elif defined(KEY_ALLOC_NEEDS_CRED)
- key = key_alloc(&key_type_afs_pag, "_pag", 0, 0, current_cred(), perm, 1);
+ key = key_alloc(&key_type_afs_pag, "_pag", 0, 0, current_cred(),
+ perm, KEY_ALLOC_NOT_IN_QUOTA);
#else
- key = key_alloc(&key_type_afs_pag, "_pag", 0, 0, perm, 1);
+ key = key_alloc(&key_type_afs_pag, "_pag", 0, 0, perm,
+ KEY_ALLOC_NOT_IN_QUOTA);
#endif
if (!IS_ERR(key)) {