]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
fs/xattr.c:getxattr(): improve handling of allocation failures
authorSasha Levin <levinsasha928@gmail.com>
Mon, 30 Jul 2012 21:39:13 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:11 +0000 (17:25 -0700)
commit779302e67835fe9a6b74327e54969ba59cb3478a
tree1e808fa81616ddf170879652f86e3d755694af81
parent32b4560b04af6e4fee241ea6de6db780eaf354f2
fs/xattr.c:getxattr(): improve handling of allocation failures

This allocation can be as large as 64k.

 - Add __GFP_NOWARN so the falied kmalloc() is silent

 - Fall back to vmalloc() if the kmalloc() failed

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Cc: Al 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/xattr.c