aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2012-10-08 07:26:15 -0600
committerChris Mason <chris.mason@fusionio.com>2012-10-09 09:37:30 -0400
commit1037a5affc266fdfe08b2dd415d309ab2778ce6a (patch)
treea43eb06a467311e36d84ba36fe53ec2fac31d511 /fs/btrfs
parentf60b1b49f6f72abb8bedfd49b758773bbda043c8 (diff)
downloadkernel_goldelico_gta04-1037a5affc266fdfe08b2dd415d309ab2778ce6a.zip
kernel_goldelico_gta04-1037a5affc266fdfe08b2dd415d309ab2778ce6a.tar.gz
kernel_goldelico_gta04-1037a5affc266fdfe08b2dd415d309ab2778ce6a.tar.bz2
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/disk-io.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 8355236..7cda519 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -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;