summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode_fork.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-12-03 23:50:57 +1100
committerBen Myers <bpm@sgi.com>2013-12-11 14:59:20 -0600
commitb3f03bac8132207a20286d5602eda64500c19724 (patch)
tree851ccba3abdaca296a3da9b9a2fb066d4b4ebe61 /fs/xfs/xfs_inode_fork.c
parentdf8052e7dae00bde6f21b40b6e3e1099770f3afc (diff)
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 <dchinner@redhat.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode_fork.c')
0 files changed, 0 insertions, 0 deletions