staging: lustre: fiemap: set FIEMAP_EXTENT_LAST correctly
authorBobi Jam <bobijam.xu@intel.com>
Sun, 18 Sep 2016 20:38:23 +0000 (16:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Sep 2016 07:53:45 +0000 (09:53 +0200)
commit5e6bcb48b6b0c752132a393c98d19912564984b7
tree6b53ec048dcfb7287daed14c52cd1e1af9af9fa7
parentc86a6c1189a182c3b2670bbc91c3e66123c0cdba
staging: lustre: fiemap: set FIEMAP_EXTENT_LAST correctly

When we've collected enough extents as user requested, we'd check one
further to decide whether we've reached the last extent of the file.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5933
Reviewed-on: http://review.whamcloud.com/12781
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_obd.c