Commit 1037a5affc266fdfe08b2dd415d309ab2778ce6a

Authored by Wang Sheng-Hui
Committed by Chris Mason
1 parent f60b1b49f6

Btrfs: remove repeated eb->pages check in, disk-io.c/csum_dirty_buffer

In csum_dirty_buffer, we first get eb from page->private.
Then we check if the page is the first page of eb. Later
we check it again. Remove the repeated check here.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>

Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff

... ... @@ -433,10 +433,6 @@
433 433 WARN_ON(1);
434 434 return 0;
435 435 }
436   - if (eb->pages[0] != page) {
437   - WARN_ON(1);
438   - return 0;
439   - }
440 436 if (!PageUptodate(page)) {
441 437 WARN_ON(1);
442 438 return 0;