diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-01-03 09:08:48 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:58 -0400 |
commit | 4313b3994d719fcdeb7e661473019ca3d62e829b (patch) | |
tree | 1a18dca96a9f54e8444c4c06c9beda3694bc25d3 /fs/btrfs/disk-io.c | |
parent | 56b453c92fdf51fd3283a2dc2dfbedf36f516031 (diff) |
Btrfs: Reduce stack usage in the resizer, fix 32 bit compiles
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index de026d9d9b2b..67d9fd728868 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -374,6 +374,7 @@ static int __setup_root(u32 nodesize, u32 leafsize, u32 sectorsize, | |||
374 | root->highest_inode = 0; | 374 | root->highest_inode = 0; |
375 | root->last_inode_alloc = 0; | 375 | root->last_inode_alloc = 0; |
376 | root->name = NULL; | 376 | root->name = NULL; |
377 | root->in_sysfs = 0; | ||
377 | memset(&root->root_key, 0, sizeof(root->root_key)); | 378 | memset(&root->root_key, 0, sizeof(root->root_key)); |
378 | memset(&root->root_item, 0, sizeof(root->root_item)); | 379 | memset(&root->root_item, 0, sizeof(root->root_item)); |
379 | memset(&root->defrag_progress, 0, sizeof(root->defrag_progress)); | 380 | memset(&root->defrag_progress, 0, sizeof(root->defrag_progress)); |
@@ -516,6 +517,9 @@ struct btrfs_root *btrfs_read_fs_root(struct btrfs_fs_info *fs_info, | |||
516 | if (!root) | 517 | if (!root) |
517 | return NULL; | 518 | return NULL; |
518 | 519 | ||
520 | if (root->in_sysfs) | ||
521 | return root; | ||
522 | |||
519 | ret = btrfs_set_root_name(root, name, namelen); | 523 | ret = btrfs_set_root_name(root, name, namelen); |
520 | if (ret) { | 524 | if (ret) { |
521 | free_extent_buffer(root->node); | 525 | free_extent_buffer(root->node); |
@@ -530,6 +534,7 @@ struct btrfs_root *btrfs_read_fs_root(struct btrfs_fs_info *fs_info, | |||
530 | kfree(root); | 534 | kfree(root); |
531 | return ERR_PTR(ret); | 535 | return ERR_PTR(ret); |
532 | } | 536 | } |
537 | root->in_sysfs = 1; | ||
533 | return root; | 538 | return root; |
534 | } | 539 | } |
535 | #if 0 | 540 | #if 0 |