aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorLiu Bo <[email protected]>2016-09-02 12:35:34 -0700
committerFilipe Manana <[email protected]>2016-11-23 20:23:20 +0000
commitef85b25e982b5bba1530b936e283ef129f02ab9d (patch)
treee11f95703caf9024ec01611bf4751cba6f8fa267 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent2a2a83de548f7afe2c27e51cbc9ff761cba2b61b (diff)
Btrfs: fix BUG_ON in btrfs_mark_buffer_dirty
This can only happen with CONFIG_BTRFS_FS_CHECK_INTEGRITY=y. Commit 1ba98d0 ("Btrfs: detect corruption when non-root leaf has zero item") assumes that a leaf is its root when leaf->bytenr == btrfs_root_bytenr(root), however, we should not use btrfs_root_bytenr(root) since it's mainly got updated during committing transaction. So the check can fail when doing COW on this leaf while it is a root. This changes to use "if (leaf == btrfs_root_node(root))" instead, just like how we check whether leaf is a root in __btrfs_cow_block(). Fixes: 1ba98d086fe3 (Btrfs: detect corruption when non-root leaf has zero item) Cc: [email protected] # 4.8+ Reported-by: Jeff Mahoney <[email protected]> Signed-off-by: Liu Bo <[email protected]> Reviewed-by: Filipe Manana <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions