disk-io.c (c289811cc096c57ff35550ee8132793a4f9b5b59) | disk-io.c (163e783e6a8b1e8bcb4c9084d438091386b589df) |
---|---|
1/* 2 * Copyright (C) 2007 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, --- 12 unchanged lines hidden (view full) --- 21#include <linux/scatterlist.h> 22#include <linux/swap.h> 23#include <linux/radix-tree.h> 24#include <linux/writeback.h> 25#include <linux/buffer_head.h> 26#include <linux/workqueue.h> 27#include <linux/kthread.h> 28#include <linux/freezer.h> | 1/* 2 * Copyright (C) 2007 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, --- 12 unchanged lines hidden (view full) --- 21#include <linux/scatterlist.h> 22#include <linux/swap.h> 23#include <linux/radix-tree.h> 24#include <linux/writeback.h> 25#include <linux/buffer_head.h> 26#include <linux/workqueue.h> 27#include <linux/kthread.h> 28#include <linux/freezer.h> |
29#include <linux/crc32c.h> |
|
29#include "compat.h" | 30#include "compat.h" |
30#include "crc32c.h" | |
31#include "ctree.h" 32#include "disk-io.h" 33#include "transaction.h" 34#include "btrfs_inode.h" 35#include "volumes.h" 36#include "print-tree.h" 37#include "async-thread.h" 38#include "locking.h" --- 127 unchanged lines hidden (view full) --- 166 if (ret) 167 em = ERR_PTR(ret); 168out: 169 return em; 170} 171 172u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len) 173{ | 31#include "ctree.h" 32#include "disk-io.h" 33#include "transaction.h" 34#include "btrfs_inode.h" 35#include "volumes.h" 36#include "print-tree.h" 37#include "async-thread.h" 38#include "locking.h" --- 127 unchanged lines hidden (view full) --- 166 if (ret) 167 em = ERR_PTR(ret); 168out: 169 return em; 170} 171 172u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len) 173{ |
174 return btrfs_crc32c(seed, data, len); | 174 return crc32c(seed, data, len); |
175} 176 177void btrfs_csum_final(u32 crc, char *result) 178{ 179 *(__le32 *)result = ~cpu_to_le32(crc); 180} 181 182/* --- 2275 unchanged lines hidden --- | 175} 176 177void btrfs_csum_final(u32 crc, char *result) 178{ 179 *(__le32 *)result = ~cpu_to_le32(crc); 180} 181 182/* --- 2275 unchanged lines hidden --- |