commit | b0c0ea6338d5018e02d27c5315084fb1a5d099f6 | [log] [tgz] |
---|---|---|
author | David Sterba <[email protected]> | Tue Nov 10 18:54:00 2015 +0100 |
committer | David Sterba <[email protected]> | Thu Jan 07 15:20:54 2016 +0100 |
tree | bf2aa288dd2d98143b12ea1753739491c7eda54d | |
parent | a1ee736268448d74af25737568e383acb84c3c18 [diff] |
btrfs: allocate root item at snapshot ioctl time The actual snapshot creation is delayed until transaction commit. If we cannot get enough memory for the root item there, we have to fail the whole transaction commit which is bad. So we'll allocate the memory at the ioctl call and pass it along with the pending_snapshot struct. The potential ENOMEM will be returned to the caller of snapshot ioctl. Signed-off-by: David Sterba <[email protected]>