]> git.baikalelectronics.ru Git - kernel.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)
commit3d2ea72e0a0b3df6bf6e717c47b1353bcba81a60
tree21f938ad3adafb2902358a5a234169229b3bcc16
parent7f953e75ce85dc0241bd2d30d8ed79494ced3124
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