Commit 2e932165 authored by Andrew Morton's avatar Andrew Morton Committed by James Toy

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

parent 3237b7b8
...@@ -1111,6 +1111,20 @@ __getblk_slow(struct block_device *bdev, sector_t block, int size) ...@@ -1111,6 +1111,20 @@ __getblk_slow(struct block_device *bdev, sector_t block, int size)
return NULL; 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 (;;) { for (;;) {
struct buffer_head * bh; struct buffer_head * bh;
int ret; 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