]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
fs/xattr.c:listxattr(): fall back to vmalloc() if kmalloc() failed
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 5 Apr 2012 21:25:07 +0000 (14:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Apr 2012 22:25:50 +0000 (15:25 -0700)
commit0d08d7b7e13b5060181b11ecdde82d8fda322123
tree21f938ad3adafb2902358a5a234169229b3bcc16
parent703bf2d122c95412a30f72658c53ad6292867b0b
fs/xattr.c:listxattr(): fall back to vmalloc() if kmalloc() failed

This allocation can be as large as 64k.  As David points out, "falling
back to vmalloc here is much better solution than failing to retreive
the attribute - it will work no matter how fragmented memory gets.  That
means we don't get incomplete backups occurring after days or months of
uptime and successful backups".

Cc: Dave Chinner <david@fromorbit.com>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: David Rientjes <rientjes@google.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