Btrfs: Switch to libcrc32c to avoid problems with cryptomgr on highmem machines
[linux-2.6-block.git] / fs / btrfs / ctree.h
index 24410d42e3cefe7b617915ae7cc992dfee75a1c4..19a1d998fca7ceccfcc05c26c69300ed1c8d73bf 100644 (file)
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2007 Oracle.  All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public
+ * License v2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 021110-1307, USA.
+ */
+
 #ifndef __BTRFS__
 #define __BTRFS__
 
@@ -268,10 +286,7 @@ struct btrfs_block_group_cache {
        int cached;
 };
 
-struct crypto_hash;
-
 struct btrfs_fs_info {
-       spinlock_t hash_lock;
        struct btrfs_root *extent_root;
        struct btrfs_root *tree_root;
        struct radix_tree_root fs_roots_radix;
@@ -296,7 +311,6 @@ struct btrfs_fs_info {
        struct mutex fs_mutex;
        struct list_head trans_list;
        struct list_head dead_roots;
-       struct crypto_hash *hash_tfm;
        struct delayed_work trans_work;
        int do_barriers;
        int closing;
@@ -1124,6 +1138,8 @@ int btrfs_csum_truncate(struct btrfs_trans_handle *trans,
                        struct btrfs_root *root, struct btrfs_path *path,
                        u64 isize);
 /* inode.c */
+int btrfs_page_mkwrite(struct vm_area_struct *vma, struct page *page);
+int btrfs_readpage(struct file *file, struct page *page);
 void btrfs_delete_inode(struct inode *inode);
 void btrfs_read_locked_inode(struct inode *inode);
 int btrfs_write_inode(struct inode *inode, int wait);