Skip to content

Commit

Permalink
Btrfs: remove repeated eb->pages check in, disk-io.c/csum_dirty_buffer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Sheng-Hui authored and Chris Mason committed Oct 9, 2012
1 parent f60b1b4 commit 1037a5a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,6 @@ static int csum_dirty_buffer(struct btrfs_root *root, struct page *page)
WARN_ON(1);
return 0;
}
if (eb->pages[0] != page) {
WARN_ON(1);
return 0;
}
if (!PageUptodate(page)) {
WARN_ON(1);
return 0;
Expand Down

0 comments on commit 1037a5a

Please sign in to comment.