]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: remove pointless empty log context list check when syncing log
authorFilipe Manana <fdmanana@suse.com>
Thu, 5 Oct 2023 11:11:09 +0000 (12:11 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:18 +0000 (16:44 +0200)
commit3cf63ddf29f94cfedae12a6ebebeaedbfc5d5de1
tree57ed59ee24c408f06d0cd277ac543c97e654b592
parent68539bd0e73b457f88a9d00cabb6533ec8582dc9
btrfs: remove pointless empty log context list check when syncing log

When syncing the log, if we get an error when updating the log root, we
check first if the log root tree context is in a log context list, and if
so it deletes from the log root tree context from the list. This check
however is pointless because at this moment the context is always in a
list, he have just added it to a context list. The check became pointless
after commit a93e01682e28 ("btrfs: remove no longer needed use of
log_writers for the log root tree"). So remove this now pointless empty
list check.

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/tree-log.c