diff options
author | Filipe Manana <fdmanana@suse.com> | 2023-10-09 15:01:43 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-10-12 17:44:19 +0300 |
commit | cc687c2ef43db15d5ad9a57d93c1b348726feb97 (patch) | |
tree | 33eea4c8228ff679d52bc8ec9f392cd7a48f315d /fs/btrfs/btrfs_inode.h | |
parent | a666ce9babf2e3ade3809163ccc81d5805bb503b (diff) | |
download | linux-cc687c2ef43db15d5ad9a57d93c1b348726feb97.tar.xz |
btrfs: remove redundant log root tree index assignment during log sync
During log syncing, when we start updating the log root tree we compute
an index value, stored in variable 'index2', once we lock the log root
tree's mutex. This value depends on the log root's log_transid. And
shortly after we compute again the same value for 'index2' - the value
is exactly the same since we haven't released the mutex and therefore
the log_transid of the log root is the same as before.
This second 'index2' computation became pointless after commit
a93e01682e28 ("btrfs: remove no longer needed use of log_writers for the
log root tree"). So remove it.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
0 files changed, 0 insertions, 0 deletions