diff options
-rw-r--r-- | fs/btrfs/INSTALL | 17 | ||||
-rw-r--r-- | fs/btrfs/root-tree.c | 2 | ||||
-rw-r--r-- | fs/btrfs/transaction.c | 1 |
3 files changed, 7 insertions, 13 deletions
diff --git a/fs/btrfs/INSTALL b/fs/btrfs/INSTALL index e83ff6e8c8d5..16b45a56878d 100644 --- a/fs/btrfs/INSTALL +++ b/fs/btrfs/INSTALL | |||
@@ -5,19 +5,16 @@ directory can only be changed by btrfsctl right now, and normal filesystem | |||
5 | operations do not work on it. The default subvolume is called 'default', | 5 | operations do not work on it. The default subvolume is called 'default', |
6 | and you can create files and directories in mount_point/default | 6 | and you can create files and directories in mount_point/default |
7 | 7 | ||
8 | Btrfs uses the crypto manager interface in the kernel for file and | 8 | Btrfs uses libcrc32c in the kernel for file and metadata checksums. You need |
9 | metadata checksums. You need to compile the kernel with: | 9 | to compile the kernel with: |
10 | 10 | ||
11 | CONFIG_CRYPTO=y | 11 | CONFIG_LIBCRC32C=m |
12 | CONFIG_CRYPTO_MANAGER=m | ||
13 | CONFIG_CRYPTO_CRC32C=m | ||
14 | 12 | ||
15 | cryptomanager and crc32c can be static as well. Once your kernel is | 13 | libcrc32c can be static as well. Once your kernel is setup, typing make in the |
16 | setup, typing make in the btrfs module sources will build against the | 14 | btrfs module sources will build against the running kernel. When the build is |
17 | running kernel. When the build is complete: | 15 | complete: |
18 | 16 | ||
19 | modprobe crc32c | 17 | modprobe libcrc32c |
20 | modprobe cryptomgr | ||
21 | insmod btrfs.ko | 18 | insmod btrfs.ko |
22 | 19 | ||
23 | The Btrfs utility programs require libuuid to build. This can be found | 20 | The Btrfs utility programs require libuuid to build. This can be found |
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 737e5a38d17e..8b0eca042ea4 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
@@ -51,7 +51,6 @@ int btrfs_find_last_root(struct btrfs_root *root, u64 objectid, | |||
51 | memcpy(item, btrfs_item_ptr(l, slot, struct btrfs_root_item), | 51 | memcpy(item, btrfs_item_ptr(l, slot, struct btrfs_root_item), |
52 | sizeof(*item)); | 52 | sizeof(*item)); |
53 | btrfs_disk_key_to_cpu(key, &l->items[slot].key); | 53 | btrfs_disk_key_to_cpu(key, &l->items[slot].key); |
54 | printk("find last finds key %Lu %u %Lu slot %d search for obj %Lu\n", key->objectid, key->flags, key->offset, slot, objectid); | ||
55 | ret = 0; | 54 | ret = 0; |
56 | out: | 55 | out: |
57 | btrfs_release_path(root, path); | 56 | btrfs_release_path(root, path); |
@@ -141,7 +140,6 @@ int btrfs_find_dead_roots(struct btrfs_root *root) | |||
141 | ret = PTR_ERR(root); | 140 | ret = PTR_ERR(root); |
142 | goto err; | 141 | goto err; |
143 | } | 142 | } |
144 | printk("found dead root %Lu %u %Lu\n", key.objectid, key.flags, key.offset); | ||
145 | ret = btrfs_add_dead_root(dead_root, | 143 | ret = btrfs_add_dead_root(dead_root, |
146 | &root->fs_info->dead_roots); | 144 | &root->fs_info->dead_roots); |
147 | if (ret) | 145 | if (ret) |
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 85a2a5e27148..a5a63d471e43 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -308,7 +308,6 @@ static int drop_dirty_roots(struct btrfs_root *tree_root, | |||
308 | list_del_init(&dirty->list); | 308 | list_del_init(&dirty->list); |
309 | 309 | ||
310 | trans = btrfs_start_transaction(tree_root, 1); | 310 | trans = btrfs_start_transaction(tree_root, 1); |
311 | printk("deleting root %Lu %u %Lu\n", dirty->snap_key.objectid, dirty->snap_key.flags, dirty->snap_key.offset); | ||
312 | ret = btrfs_drop_snapshot(trans, dirty->root, | 311 | ret = btrfs_drop_snapshot(trans, dirty->root, |
313 | dirty->commit_root); | 312 | dirty->commit_root); |
314 | BUG_ON(ret); | 313 | BUG_ON(ret); |