diff options
author | Liu Bo <bo.liu@linux.alibaba.com> | 2018-05-17 23:00:20 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-30 10:46:44 -0400 |
commit | e6a1d6fd276965db0ca91e91dffc0a6fb7d89254 (patch) | |
tree | dff22e61d0c7251484847aa1122f83eebca73256 | |
parent | ca19b4a69962fa850d5a22aa7a335106fcba0473 (diff) |
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>
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 820226d42d5d..46afc9743ad0 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -2445,7 +2445,7 @@ read_block_for_search(struct btrfs_root *root, struct btrfs_path *p, | |||
2445 | * and give up so that our caller doesn't loop forever | 2445 | * and give up so that our caller doesn't loop forever |
2446 | * on our EAGAINs. | 2446 | * on our EAGAINs. |
2447 | */ | 2447 | */ |
2448 | if (!btrfs_buffer_uptodate(tmp, 0, 0)) | 2448 | if (!extent_buffer_uptodate(tmp)) |
2449 | ret = -EIO; | 2449 | ret = -EIO; |
2450 | free_extent_buffer(tmp); | 2450 | free_extent_buffer(tmp); |
2451 | } else { | 2451 | } else { |