diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-01-03 14:51:00 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:59 -0400 |
commit | d666746207a01546e55bdaa4b721d1890faaf6e8 (patch) | |
tree | 9ed65e121a44aace7364551b6b607e098a590770 /fs/btrfs/root-tree.c | |
parent | 73e48b277a3fcd647f1936c71aea2f8d450ecc74 (diff) |
Btrfs: Change st_blocksize to 4k
Some programs (python) do rwm cycles at the granularity returned by
stat.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r-- | fs/btrfs/root-tree.c | 9 |
1 files changed, 8 insertions, 1 deletions
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); |