]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/xattr.c:listxattr(): fall back to vmalloc() if kmalloc() failed
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Apr 2012 00:07:55 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 4 Apr 2012 03:07:15 +0000 (13:07 +1000)
commit7cb683cda9b809795f5ff58e76fdf3f089d24a37
tree26d23fca7446dd98e19788916de16b6a40e15ccd
parentb981b26bc08f1a802628d3cf59fb797a11e7360c
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>
fs/xattr.c