Commit ecb78dd7 authored by Andrew Morton's avatar Andrew Morton Committed by james toy

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

parent da35a55b
......@@ -1111,6 +1111,20 @@ __getblk_slow(struct block_device *bdev, sector_t block, int size)
return NULL;
}
#if (BITS_PER_LONG == 32) && defined(CONFIG_LBD)
if ((block >> (PAGE_CACHE_SHIFT - bdev->bd_inode->i_blkbits)) &
0xffffffff00000000UL) {
/*
* We'll fail because the block is outside the range
* which a 32-bit pagecache index can address
*/
printk(KERN_ERR "getblk(): sector number too large for 32-bit"
"machines\n");
dump_stack();
return NULL;
}
#endif
for (;;) {
struct buffer_head * bh;
int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment