compression.c (4b384318a74e38eb248f74f9a92a700d2ce841f1) compression.c (c1c9ff7c94e83fae89a742df74db51156869bad5)
1/*
2 * Copyright (C) 2008 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 118 unchanged lines hidden (view full) ---

127 csum = btrfs_csum_data(kaddr, csum, PAGE_CACHE_SIZE);
128 btrfs_csum_final(csum, (char *)&csum);
129 kunmap_atomic(kaddr);
130
131 if (csum != *cb_sum) {
132 printk(KERN_INFO "btrfs csum failed ino %llu "
133 "extent %llu csum %u "
134 "wanted %u mirror %d\n",
1/*
2 * Copyright (C) 2008 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 118 unchanged lines hidden (view full) ---

127 csum = btrfs_csum_data(kaddr, csum, PAGE_CACHE_SIZE);
128 btrfs_csum_final(csum, (char *)&csum);
129 kunmap_atomic(kaddr);
130
131 if (csum != *cb_sum) {
132 printk(KERN_INFO "btrfs csum failed ino %llu "
133 "extent %llu csum %u "
134 "wanted %u mirror %d\n",
135 (unsigned long long)btrfs_ino(inode),
136 (unsigned long long)disk_start,
137 csum, *cb_sum, cb->mirror_num);
135 btrfs_ino(inode), disk_start, csum, *cb_sum,
136 cb->mirror_num);
138 ret = -EIO;
139 goto fail;
140 }
141 cb_sum++;
142
143 }
144 ret = 0;
145fail:

--- 911 unchanged lines hidden ---
137 ret = -EIO;
138 goto fail;
139 }
140 cb_sum++;
141
142 }
143 ret = 0;
144fail:

--- 911 unchanged lines hidden ---