OSDN Git Service

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)
committerFilipe Manana <fdmanana@suse.com>
Fri, 13 May 2016 00:59:30 +0000 (01:59 +0100)
commit5062af35c3c6e49110ab1ec99295339259298a3d
tree21cbe4d6bc5a8b887a17d989e8ceb95ade8887f8
parent376e5a57bf7f1466031a957d04bf8b8f6801ee6d
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>
fs/btrfs/inode.c