btrfs: use the existing reserved items for our first prop for inheritance
authorJosef Bacik <josef@toxicpanda.com>
Fri, 26 Apr 2019 14:25:50 +0000 (16:25 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 9 May 2019 09:18:14 +0000 (11:18 +0200)
commitd7400ee1b476f201f8fb4264887d18bdb23ee352
treee87f2944f5a9a57a106bb80af6c4667877008257
parent8fca955057b9c58467d1b231e43f19c4cf26ae8c
btrfs: use the existing reserved items for our first prop for inheritance

We're now reserving an extra items worth of space for property
inheritance.  We only have one property at the moment so this covers us,
but if we add more in the future this will allow us to not get bitten by
the extra space reservation.  If we do add more properties in the future
we should re-visit how we calculate the space reservation needs by the
callers.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
[ refreshed on top of prop/xattr cleanups ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/props.c