]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use dynamic allocation for root item in create_subvol
authorDavid Sterba <dsterba@suse.com>
Thu, 24 Mar 2016 16:49:22 +0000 (17:49 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 13:22:49 +0000 (15:22 +0200)
commit42d618d896ba3ee0d07ce61385c82bc3f9a052f7
tree7d35b6496cbffb7f3033a42a171e1a577d896a64
parent5307e6961bdf23e93d9132aa6d8a72bba2282077
btrfs: use dynamic allocation for root item in create_subvol

The size of root item is more than 400 bytes, which is quite a lot of
stack space. As we do IO from inside the subvolume ioctls, we should
keep the stack usage low in case the filesystem is on top of other
layers (NFS, device mapper, iscsi, etc).

Reviewed-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c