fs/file.c: replace alloc_fdmem() with kvmalloc() alternative
authorMichal Hocko <mhocko@suse.com>
Thu, 6 Jul 2017 22:36:19 +0000 (15:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Jul 2017 23:24:30 +0000 (16:24 -0700)
commitc823bd9244337aef3699c546eb521c71fd60012e
tree31cf0debefe18f88e2b8eb1855b978e2d8f20328
parentb74271e40e5de75c4316a68ebbb43150b509e708
fs/file.c: replace alloc_fdmem() with kvmalloc() alternative

There is no real reason to duplicate kvmalloc* helpers so drop
alloc_fdmem and replace it with the appropriate library function.

Link: http://lkml.kernel.org/r/20170531155145.17111-2-mhocko@kernel.org
Signed-off-by: Michal Hocko <mhocko@suse.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/file.c