mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
btrfs: remove duplicated eb uptodate check in btrfs_buffer_uptodate()
We are calling extent_buffer_uptodate() twice, and the result will not change before the second call. So remove the second call. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
883adb6dcf
commit
8352b29ad0
|
|
@ -121,8 +121,7 @@ int btrfs_buffer_uptodate(struct extent_buffer *eb, u64 parent_transid, bool ato
|
|||
if (atomic)
|
||||
return -EAGAIN;
|
||||
|
||||
if (!extent_buffer_uptodate(eb) ||
|
||||
btrfs_header_generation(eb) != parent_transid) {
|
||||
if (btrfs_header_generation(eb) != parent_transid) {
|
||||
btrfs_err_rl(eb->fs_info,
|
||||
"parent transid verify failed on logical %llu mirror %u wanted %llu found %llu",
|
||||
eb->start, eb->read_mirror,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user