diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/inode.c | 2 | ||||
-rw-r--r-- | fs/btrfs/root-tree.c | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 6e2d03626fb9..6d0cd9a7a615 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -2701,7 +2701,7 @@ static int btrfs_getattr(struct vfsmount *mnt, | |||
2701 | { | 2701 | { |
2702 | struct inode *inode = dentry->d_inode; | 2702 | struct inode *inode = dentry->d_inode; |
2703 | generic_fillattr(inode, stat); | 2703 | generic_fillattr(inode, stat); |
2704 | stat->blksize = 256 * 1024; | 2704 | stat->blksize = PAGE_CACHE_SIZE; |
2705 | return 0; | 2705 | return 0; |
2706 | } | 2706 | } |
2707 | 2707 | ||
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index e2b9b86af696..08f19ec88092 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
@@ -75,7 +75,14 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root | |||
75 | ret = btrfs_search_slot(trans, root, key, path, 0, 1); | 75 | ret = btrfs_search_slot(trans, root, key, path, 0, 1); |
76 | if (ret < 0) | 76 | if (ret < 0) |
77 | goto out; | 77 | goto out; |
78 | BUG_ON(ret != 0); | 78 | |
79 | if (ret != 0) { | ||
80 | btrfs_print_leaf(root, path->nodes[0]); | ||
81 | printk("unable to update root key %Lu %u %Lu\n", | ||
82 | key->objectid, key->type, key->offset); | ||
83 | BUG_ON(1); | ||
84 | } | ||
85 | |||
79 | l = path->nodes[0]; | 86 | l = path->nodes[0]; |
80 | slot = path->slots[0]; | 87 | slot = path->slots[0]; |
81 | ptr = btrfs_item_ptr_offset(l, slot); | 88 | ptr = btrfs_item_ptr_offset(l, slot); |