]> git.hungrycats.org Git - linux/commit
Btrfs: fix number of transaction units for renames with whiteout
authorFilipe Manana <fdmanana@suse.com>
Thu, 5 May 2016 09:26:26 +0000 (10:26 +0100)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Wed, 17 Aug 2016 02:40:49 +0000 (22:40 -0400)
commitc8adaf74e4d1ce9cf8a57a654a79a4302e58750c
tree5296ed374fa7d85bf299a44812d4c21c9c94b0c8
parent812a8b892cf796c96c10920fdcea73bfa872a318
Btrfs: fix number of transaction units for renames with whiteout

When we do a rename with the whiteout flag, we need to create the whiteout
inode, which in the worst case requires 5 transaction units (1 inode item,
1 inode ref, 2 dir items and 1 xattr if selinux is enabled). So bump the
number of transaction units from 11 to 16 if the whiteout flag is set.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
(cherry picked from commit 5062af35c3c6e49110ab1ec99295339259298a3d)
fs/btrfs/inode.c