diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-05-23 14:37:47 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-05-23 14:37:47 -0400 |
commit | d6c0cb379c5198487e4ac124728cbb2346d63b1f (patch) | |
tree | 167a97ac58c7a2fbf7c4e94b6abbfe1e03af014a /fs/btrfs/super.c | |
parent | 8e531cdfeb75269c6c5aae33651cca39707848da (diff) | |
parent | 1f78160ce1b1b8e657e2248118c4d91f881763f0 (diff) |
Merge branch 'cleanups_and_fixes' into inode_numbers
Conflicts:
fs/btrfs/tree-log.c
fs/btrfs/volumes.c
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 006655c1d1f7..cd0c7cd2c8fb 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -507,8 +507,10 @@ static struct dentry *get_default_root(struct super_block *sb, | |||
507 | */ | 507 | */ |
508 | dir_id = btrfs_super_root_dir(&root->fs_info->super_copy); | 508 | dir_id = btrfs_super_root_dir(&root->fs_info->super_copy); |
509 | di = btrfs_lookup_dir_item(NULL, root, path, dir_id, "default", 7, 0); | 509 | di = btrfs_lookup_dir_item(NULL, root, path, dir_id, "default", 7, 0); |
510 | if (IS_ERR(di)) | 510 | if (IS_ERR(di)) { |
511 | btrfs_free_path(path); | ||
511 | return ERR_CAST(di); | 512 | return ERR_CAST(di); |
513 | } | ||
512 | if (!di) { | 514 | if (!di) { |
513 | /* | 515 | /* |
514 | * Ok the default dir item isn't there. This is weird since | 516 | * Ok the default dir item isn't there. This is weird since |