You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
748 B

  1. --- a/vfs_cache.c
  2. +++ b/vfs_cache.c
  3. @@ -232,7 +232,7 @@ int __init cifsd_inode_hash_init(void)
  4. size = bucketsize << inode_hash_shift;
  5. /* init master fp hash table */
  6. - inode_hashtable = __vmalloc(size, GFP_ATOMIC, PAGE_KERNEL);
  7. + inode_hashtable = vmalloc(size);
  8. if (!inode_hashtable)
  9. return -ENOMEM;
  10. --- b/vfs.c
  11. +++ b/vfs.c
  12. @@ -17,6 +17,8 @@
  13. #include <linux/fsnotify.h>
  14. #include <linux/dcache.h>
  15. #include <linux/fiemap.h>
  16. +#include <linux/slab.h>
  17. +#include <linux/vmalloc.h>
  18. #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
  19. #include <linux/sched/xacct.h>
  20. --- b/vfs_cache.c
  21. +++ b/vfs_cache.c
  22. @@ -5,6 +5,8 @@
  23. */
  24. #include <linux/fs.h>
  25. +#include <linux/slab.h>
  26. +#include <linux/vmalloc.h>
  27. /* @FIXME */
  28. #include "glob.h"