]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: allocate xfs_da_args to reduce stack footprint
authorDave Chinner <dchinner@redhat.com>
Thu, 27 Feb 2014 05:51:26 +0000 (16:51 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 27 Feb 2014 05:51:26 +0000 (16:51 +1100)
commitd67abece8511735cb2d1e79fe4ed9844841613d9
tree5610d548d82191f7e0a18de07ea863c251754060
parent7786395ee051b9b0828f39e87f875089c734fc47
xfs: allocate xfs_da_args to reduce stack footprint

The struct xfs_da_args used to pass directory/attribute operation
information to the lower layers is 128 bytes in size and is
allocated on the stack. Dynamically allocate them to reduce the
stack footprint of directory operations.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_dir2.c