diff options
-rw-r--r-- | fs/btrfs/file-item.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index e17cce33fe95..374d0245b29d 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c | |||
@@ -278,11 +278,11 @@ found: | |||
278 | btrfs_item_size_nr(leaf, path->slots[0])); | 278 | btrfs_item_size_nr(leaf, path->slots[0])); |
279 | eb_token = NULL; | 279 | eb_token = NULL; |
280 | next_bvec: | 280 | next_bvec: |
281 | data = kmap_atomic(bvec->bv_page, KM_IRQ0); | 281 | data = kmap_atomic(bvec->bv_page, KM_USER0); |
282 | csum_result = ~(u32)0; | 282 | csum_result = ~(u32)0; |
283 | csum_result = btrfs_csum_data(root, data + bvec->bv_offset, | 283 | csum_result = btrfs_csum_data(root, data + bvec->bv_offset, |
284 | csum_result, bvec->bv_len); | 284 | csum_result, bvec->bv_len); |
285 | kunmap_atomic(data, KM_IRQ0); | 285 | kunmap_atomic(data, KM_USER0); |
286 | btrfs_csum_final(csum_result, (char *)&csum_result); | 286 | btrfs_csum_final(csum_result, (char *)&csum_result); |
287 | if (csum_result == 0) { | 287 | if (csum_result == 0) { |
288 | printk("csum result is 0 for inode %lu offset %Lu\n", inode->i_ino, offset); | 288 | printk("csum result is 0 for inode %lu offset %Lu\n", inode->i_ino, offset); |
@@ -293,12 +293,12 @@ next_bvec: | |||
293 | int err; | 293 | int err; |
294 | 294 | ||
295 | if (eb_token) | 295 | if (eb_token) |
296 | unmap_extent_buffer(leaf, eb_token, KM_IRQ1); | 296 | unmap_extent_buffer(leaf, eb_token, KM_USER1); |
297 | eb_token = NULL; | 297 | eb_token = NULL; |
298 | err = map_private_extent_buffer(leaf, (unsigned long)item, | 298 | err = map_private_extent_buffer(leaf, (unsigned long)item, |
299 | BTRFS_CRC32_SIZE, | 299 | BTRFS_CRC32_SIZE, |
300 | &eb_token, &eb_map, | 300 | &eb_token, &eb_map, |
301 | &map_start, &map_len, KM_IRQ1); | 301 | &map_start, &map_len, KM_USER1); |
302 | if (err) | 302 | if (err) |
303 | eb_token = NULL; | 303 | eb_token = NULL; |
304 | } | 304 | } |
@@ -321,7 +321,7 @@ next_bvec: | |||
321 | } | 321 | } |
322 | } | 322 | } |
323 | if (eb_token) { | 323 | if (eb_token) { |
324 | unmap_extent_buffer(leaf, eb_token, KM_IRQ1); | 324 | unmap_extent_buffer(leaf, eb_token, KM_USER1); |
325 | eb_token = NULL; | 325 | eb_token = NULL; |
326 | } | 326 | } |
327 | btrfs_mark_buffer_dirty(path->nodes[0]); | 327 | btrfs_mark_buffer_dirty(path->nodes[0]); |