diff --git a/[refs] b/[refs] index 6d35a466cfe8..6cd46b96f497 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b920c75502cb2c48654ef196d647c8eb81ab608a +refs/heads/master: a2dc52b5d1d8cc280b3e795abf1c80ac8c49f30c diff --git a/trunk/fs/ext4/inode.c b/trunk/fs/ext4/inode.c index fd5f27a9b81b..e6113c3a126f 100644 --- a/trunk/fs/ext4/inode.c +++ b/trunk/fs/ext4/inode.c @@ -2433,11 +2433,14 @@ static int noalloc_get_block_write(struct inode *inode, sector_t iblock, int ret = 0; unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; + BUG_ON(bh_result->b_size != inode->i_sb->s_blocksize); + /* * we don't want to do block allocation in writepage * so call get_block_wrap with create = 0 */ ret = ext4_get_blocks(NULL, inode, iblock, max_blocks, bh_result, 0); + BUG_ON(create && ret == 0); if (ret > 0) { bh_result->b_size = (ret << inode->i_blkbits); ret = 0;