Btrfs: use more straightforward extent_buffer_uptodate check
authorLiu Bo <bo.liu@linux.alibaba.com>
Fri, 18 May 2018 03:00:20 +0000 (11:00 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 May 2018 14:46:44 +0000 (16:46 +0200)
commite6a1d6fd276965db0ca91e91dffc0a6fb7d89254
treedff22e61d0c7251484847aa1122f83eebca73256
parentca19b4a69962fa850d5a22aa7a335106fcba0473
Btrfs: use more straightforward extent_buffer_uptodate check

If parent_transid "0" is passed to btrfs_buffer_uptodate(),
btrfs_buffer_uptodate() is equivalent to extent_buffer_uptodate(), but
extent_buffer_uptodate() is preferred since we don't have to look into
verify_parent_transid().

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c