Limit max_pages for insane devices
authorJoern Engel <joern@logfs.org>
Wed, 17 Mar 2010 12:47:45 +0000 (13:47 +0100)
committerJoern Engel <joern@logfs.org>
Sat, 27 Mar 2010 10:19:14 +0000 (11:19 +0100)
commit59fe27c0a8173a74b105debc803b97582028c90b
tree6011317b8da26f879989a4b654aedf6549181968
parent49137f2efb5cf68724bccaba531ab3d59acd71f9
Limit max_pages for insane devices

Intel SSDs have a limit of 0xffff as queue_max_hw_sectors(q).  Such a
limit may make sense from a hardware pov, but it causes bio_alloc() to
return NULL.

Signed-off-by: Joern Engel <joern@logfs.org>
fs/logfs/dev_bdev.c