Repository navigation
Commit e7764bc
btrfs: check the root node for uptodate before returning it
commit 120de40 upstream.
Now that we clear the extent buffer uptodate if we fail to write it out
we need to check to see if our root node is uptodate before we search
down it. Otherwise we could return stale data (or potentially corrupt
data that was caught by the write verification step) and think that the
path is OK to search down.
CC: stable@vger.kernel.org # 5.4+
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 09e0ef2 commit e7764bc
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2589 | 2589 | | |
2590 | 2590 | | |
2591 | 2591 | | |
2592 | | - | |
| 2592 | + | |
2593 | 2593 | | |
2594 | 2594 | | |
2595 | | - | |
2596 | | - | |
2597 | | - | |
2598 | 2595 | | |
2599 | 2596 | | |
2600 | 2597 | | |
| |||
2632 | 2629 | | |
2633 | 2630 | | |
2634 | 2631 | | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
2635 | 2635 | | |
2636 | 2636 | | |
2637 | 2637 | | |
| |||
2658 | 2658 | | |
2659 | 2659 | | |
2660 | 2660 | | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
2661 | 2672 | | |
2662 | 2673 | | |
2663 | 2674 | | |
| |||
0 commit comments