]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove no longer used trans_list member of struct btrfs_ordered_extent
authorFilipe Manana <fdmanana@suse.com>
Mon, 15 Jun 2020 09:36:58 +0000 (10:36 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:25 +0000 (12:55 +0200)
commit158cbb97d41d5e9a97a19a6c8f8e3a12f6f73f0d
treefc38ff6c3eae8d4de0899dd3e7e7c68f63555911
parentec362c79389b26581e8aa097dd3c4abd31731eb3
btrfs: remove no longer used trans_list member of struct btrfs_ordered_extent

The 'trans_list' member of an ordered extent was used to keep track of the
ordered extents for which a transaction commit had to wait. These were
ordered extents that were started and logged by an fsync. However we don't
do that anymore and before we stopped doing it we changed the approach to
wait for the ordered extents in commit e9854e5535fd44 ("Btrfs: change how
we wait for pending ordered extents"), which stopped using that list and
therefore the 'trans_list' member is not used anymore since that commit.
So just remove it since it's doing nothing and making each ordered extent
structure waste memory (2 pointers).

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h