History

reiserfs: Remove unneed check in reiserfs_write_full_page()

Condition !A || A && B is equivalent to !A || B. Generated by: scripts/coccinelle/misc/excluded_middle.cocci

YueHaibing committed 5 years ago

Commit 21e4e151 parent fa236c21 file · +1 −3Browse files

Unified · Split

fs/reiserfs/inode.c+1−3
@@ -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, search2589 * not mapped yet, or it points to a direct item, search
2592 * the btree for the mapping info, and log any direct2590 * the btree for the mapping info, and log any direct