]> git.baikalelectronics.ru Git - kernel.git/commit
staging/lustre/lov: calculate file offset correctly
authorJinshan Xiong <jinshan.xiong@intel.com>
Mon, 6 Jun 2016 03:28:50 +0000 (23:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:39:41 +0000 (22:39 -0700)
commite6cbf9b670911480345a007141ab267f4d0397d8
treeac2fff0fff3a0fb6788f6324625f5438cac02189
parentb629f5774e2ee390efcd5666e228c7218ee0a2ff
staging/lustre/lov: calculate file offset correctly

In lov_stripe_pgoff(), it calls lov_stripe_size() to calculate the
file size by ost_size, which will be wrong if the stripe_index
happens to be stripe aligned.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-on: http://review.whamcloud.com/14462
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6482
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_offset.c