Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297890
b: refs/heads/master
c: 65139ed
h: refs/heads/master
v: v3
  • Loading branch information
David Sterba authored and Chris Mason committed Mar 29, 2012
1 parent a7aa540 commit a74263d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fcd1f065daca593badb7f99d473639cf3b551795
refs/heads/master: 65139ed99234d8505948cdb7a835452eb5c191f9
8 changes: 8 additions & 0 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2302,6 +2302,14 @@ int open_ctree(struct super_block *sb,
goto fail_sb_buffer;
}

if ((features & BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS) &&
(leafsize != nodesize || sectorsize != nodesize)) {
printk(KERN_WARNING "btrfs: unequal leaf/node/sector sizes "
"are not allowed for mixed block groups on %s\n",
sb->s_id);
goto fail_sb_buffer;
}

mutex_lock(&fs_info->chunk_mutex);
ret = btrfs_read_sys_array(tree_root);
mutex_unlock(&fs_info->chunk_mutex);
Expand Down

0 comments on commit a74263d

Please sign in to comment.