Condition !A || A && B is equivalent to !A || B. Generated by: scripts/coccinelle/misc/excluded_middle.cocci
Unified · Split
| @@ -2584,9 +2584,7 @@ static int reiserfs_write_full_page(struct page *page, · 2583 unmodified lines | |||
| 2584 | clear_buffer_dirty(bh); | 2584 | clear_buffer_dirty(bh); |
| 2585 | set_buffer_uptodate(bh); | 2585 | set_buffer_uptodate(bh); |
| 2586 | } else if ((checked || buffer_dirty(bh)) && | 2586 | } else if ((checked || buffer_dirty(bh)) && |
| 2587 | (!buffer_mapped(bh) || (buffer_mapped(bh) | 2587 | (!buffer_mapped(bh) || bh->b_blocknr == 0)) { |
| 2588 | && bh->b_blocknr == | ||
| 2589 | 0))) { | ||
| 2590 | /* | 2588 | /* |
| 2591 | * not mapped yet, or it points to a direct item, search | 2589 | * not mapped yet, or it points to a direct item, search |
| 2592 | * the btree for the mapping info, and log any direct | 2590 | * the btree for the mapping info, and log any direct |