Conserve stack in zfs_setattr()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 2 Mar 2011 22:18:40 +0000 (14:18 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 2 Mar 2011 22:18:58 +0000 (14:18 -0800)
commitf4ea75d492139f397866b64512803191103d69bb
tree6bde53e41ae7c696d3b8aec56fc432c0ab3b8e9e
parent5484965ab650a56871a62a3373859a7a36ddafcb
Conserve stack in zfs_setattr()

Move 'tmpxvattr' from the stack to the heap to minimize stack
space usage.  This is enough to get us below the 1024 byte stack
frame warning.  That however is still a large stack frame and it
should be further reduced by moving the 'bulk' and 'xattr_bulk'
sa_bulk_attr_t variables to the heap in a future patch.
module/zfs/zfs_vnops.c