From: Dave Chinner Date: Tue, 3 Dec 2013 12:50:57 +0000 (+1100) Subject: xfs: xfs_dir2_block_to_sf temp buffer allocation fails X-Git-Tag: v3.14-rc1~123^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f03bac8132207a20286d5602eda64500c19724;p=pandora-kernel.git xfs: xfs_dir2_block_to_sf temp buffer allocation fails If we are using a large directory block size, and memory becomes fragmented, we can get memory allocation failures trying to kmem_alloc(64k) for a temporary buffer. However, there is not need for a directory buffer sized allocation, as the end result ends up in the inode literal area. This is, at most, slightly less than 2k of space, and hence we don't need an allocation larger than that fora temporary buffer. Signed-off-by: Dave Chinner Reviewed-by: Ben Myers Signed-off-by: Ben Myers --- Reading git-diff-tree failed