Skip to content

Commit 1037a5a

Browse files
Wang Sheng-HuiChris Mason
authored andcommitted
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>
1 parent f60b1b4 commit 1037a5a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/btrfs/disk-io.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,6 @@ static int csum_dirty_buffer(struct btrfs_root *root, struct page *page)
433433
WARN_ON(1);
434434
return 0;
435435
}
436-
if (eb->pages[0] != page) {
437-
WARN_ON(1);
438-
return 0;
439-
}
440436
if (!PageUptodate(page)) {
441437
WARN_ON(1);
442438
return 0;

0 commit comments

Comments
 (0)