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)
commita1358aa3d39251c16c6d8b20945e40bdfc2aad68
tree5610d548d82191f7e0a18de07ea863c251754060
parentf876e44603ad091c840a5fae5b0753bbb421c037
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