OSDN Git Service

btrfs: merge verify_parent_transid and btrfs_buffer_uptodate
authorChristoph Hellwig <hch@lst.de>
Wed, 3 May 2023 15:24:24 +0000 (17:24 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:27 +0000 (13:59 +0200)
commitd87e6575e9d1c9d43e223c3fe858e4e453265707
tree839b8794e799ee53693b3c4d8db2297d383b44b6
parentaebcc1596b5c37095385ecd930cf335254828538
btrfs: merge verify_parent_transid and btrfs_buffer_uptodate

verify_parent_transid is only called by btrfs_buffer_uptodate, which
confusingly inverts the return value.  Merge the two functions and
reflow the parent_transid so that error handling is in a branch.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c