]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b07cd07f8747c9888c0d250c9ecfc6f05067a39
treee87f2944f5a9a57a106bb80af6c4667877008257
parent86d7acde90ddb5d32d21d30130b79e9e127a8b87
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