diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-07-02 08:49:35 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-07-02 08:49:35 -0700 |
| commit | bc75ac4f1dcec256a65b531e2d5be84f5b0fe6bc (patch) | |
| tree | 10721936b043630c95f2e6686379c02bf7176e79 /include/linux/slab.h | |
| parent | cee396e281fc2c8a55261eea1a89a594e98f3e0f (diff) | |
[PATCH] Security hook for vm_enough_memory
From: Stephen Smalley <sds@epoch.ncsc.mil>
This patch against 2.5.73 replaces vm_enough_memory with a security hook
per Alan Cox's suggestion so that security modules can completely replace
the logic if desired.
Note that the patch changes the interface to follow the convention of the
other security hooks, i.e. return 0 if ok or -errno on failure (-ENOMEM in
this case) rather than returning a boolean. It also exports various
variables and functions required for the vm_enough_memory logic.
Diffstat (limited to 'include/linux/slab.h')
| -rw-r--r-- | include/linux/slab.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index 9f8bccba4ad3..d797c981f37e 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -116,6 +116,8 @@ extern kmem_cache_t *bio_cachep; void ptrinfo(unsigned long addr); +extern atomic_t slab_reclaim_pages; + #endif /* __KERNEL__ */ #endif /* _LINUX_SLAB_H */ |
