mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
btrfs: don't over reserve metadata space for property in btrfs_fileattr_set()
We are using 2 units for properties but we only set one property. Fix this by using the correct amount: 1 unit. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
63a01c7578
commit
872df0c80f
|
|
@ -393,9 +393,9 @@ int btrfs_fileattr_set(struct mnt_idmap *idmap,
|
|||
|
||||
/*
|
||||
* 1 for inode item
|
||||
* 2 for properties
|
||||
* 1 for property
|
||||
*/
|
||||
trans = btrfs_start_transaction(root, 3);
|
||||
trans = btrfs_start_transaction(root, 2);
|
||||
if (IS_ERR(trans))
|
||||
return PTR_ERR(trans);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user