diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 4c867112b4c8..58d0678dfcba 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -2258,6 +2258,12 @@ struct btrfs_root *open_ctree(struct super_block *sb, | |||
2258 | goto fail_sb_buffer; | 2258 | goto fail_sb_buffer; |
2259 | } | 2259 | } |
2260 | 2260 | ||
2261 | if (sectorsize < PAGE_SIZE) { | ||
2262 | printk(KERN_WARNING "btrfs: Incompatible sector size " | ||
2263 | "found on %s\n", sb->s_id); | ||
2264 | goto fail_sb_buffer; | ||
2265 | } | ||
2266 | |||
2261 | mutex_lock(&fs_info->chunk_mutex); | 2267 | mutex_lock(&fs_info->chunk_mutex); |
2262 | ret = btrfs_read_sys_array(tree_root); | 2268 | ret = btrfs_read_sys_array(tree_root); |
2263 | mutex_unlock(&fs_info->chunk_mutex); | 2269 | mutex_unlock(&fs_info->chunk_mutex); |