exofs: Override read-ahead to align on stripe_size
authorbharrosh@panasas.com <bharrosh@panasas.com>
Thu, 7 Oct 2010 18:28:18 +0000 (14:28 -0400)
committerBoaz Harrosh <bharrosh@panasas.com>
Tue, 15 Mar 2011 13:02:50 +0000 (15:02 +0200)
commit66cd6cad4919f980dd21307d0150ff251762a264
tree4f2d9dc0f9070ce829d03097542e7968e02df41a
parent97178b7b6c84bd14660b89474d27931a1ea65c66
exofs: Override read-ahead to align on stripe_size

* Set all inode->i_mapping->backing_dev_info to point to
  the per super-block sb->s_bdi.

* Calculating a read_ahead that is:
  - preferable 2 stripes long
    (Future patch will add a mount option to override this)
  - Minimum 128K aligned up to stripe-size
  - Caped to maximum-IO-sizes round down to stripe_size.
    (Max sizes are governed by max bio-size that fits in a page
     times number-of-devices)

CC: Marc Dionne <marc.c.dionne@gmail.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/exofs.h
fs/exofs/inode.c
fs/exofs/super.c