Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253818
b: refs/heads/master
c: 35a30d7
h: refs/heads/master
v: v3
  • Loading branch information
David Sterba authored and Chris Mason committed Jun 17, 2011
1 parent 2a8bf28 commit c411657
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 19fd294957e426bfdd8e19085096467ec18df5c4
refs/heads/master: 35a30d7ce54e087d8025a725d4e5a2fdee723a9f
6 changes: 3 additions & 3 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1299,12 +1299,12 @@ struct btrfs_root *btrfs_read_fs_root_no_name(struct btrfs_fs_info *fs_info,
return root;

root->free_ino_ctl = kzalloc(sizeof(*root->free_ino_ctl), GFP_NOFS);
if (!root->free_ino_ctl)
goto fail;
root->free_ino_pinned = kzalloc(sizeof(*root->free_ino_pinned),
GFP_NOFS);
if (!root->free_ino_pinned)
if (!root->free_ino_pinned || !root->free_ino_ctl) {
ret = -ENOMEM;
goto fail;
}

btrfs_init_free_ino_ctl(root);
mutex_init(&root->fs_commit_mutex);
Expand Down

0 comments on commit c411657

Please sign in to comment.