Skip to content
Commit b0c0ea63 authored by David Sterba's avatar David Sterba
Browse files

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: default avatarDavid Sterba <dsterba@suse.com>
parent a1ee7362
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment