Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128593
b: refs/heads/master
c: d666746
h: refs/heads/master
i:
  128591: fe91133
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 2fcec32 commit b2da9c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73e48b277a3fcd647f1936c71aea2f8d450ecc74
refs/heads/master: d666746207a01546e55bdaa4b721d1890faaf6e8
2 changes: 1 addition & 1 deletion trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2701,7 +2701,7 @@ static int btrfs_getattr(struct vfsmount *mnt,
{
struct inode *inode = dentry->d_inode;
generic_fillattr(inode, stat);
stat->blksize = 256 * 1024;
stat->blksize = PAGE_CACHE_SIZE;
return 0;
}

Expand Down
9 changes: 8 additions & 1 deletion trunk/fs/btrfs/root-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root
ret = btrfs_search_slot(trans, root, key, path, 0, 1);
if (ret < 0)
goto out;
BUG_ON(ret != 0);

if (ret != 0) {
btrfs_print_leaf(root, path->nodes[0]);
printk("unable to update root key %Lu %u %Lu\n",
key->objectid, key->type, key->offset);
BUG_ON(1);
}

l = path->nodes[0];
slot = path->slots[0];
ptr = btrfs_item_ptr_offset(l, slot);
Expand Down

0 comments on commit b2da9c5

Please sign in to comment.