exofs: Use proper max_IO calculations from ore
authorBoaz Harrosh <bharrosh@panasas.com>
Thu, 2 Aug 2012 11:59:57 +0000 (14:59 +0300)
committerBoaz Harrosh <bharrosh@panasas.com>
Thu, 2 Aug 2012 13:39:17 +0000 (16:39 +0300)
commitbe388f3d9af4155db0dc9e7e59dd49db90271c1c
treea7b5e4b47d82a88b03e197f6932209cad7f8714b
parent4b74f6ea8417e48bb1fc65880a0574134a8b4745
exofs: Use proper max_IO calculations from ore

exofs_max_io_pages should just use the ORE's
calculated layout->max_io_length,

And avoid unnecessary BUGs, calculations made here were
also a layering violation.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/inode.c