[PATCH 2/2] staging: lustre: llite: refactor lov_object_fiemap()

2016-11-08 Thread Xu, Bobijam
Add fiemap_for_stripe() to get file map extent from each stripe device. Signed-off-by: Bobi Jam --- drivers/staging/lustre/lustre/lov/lov_object.c | 441 + 1 file changed, 225 insertions(+), 216 deletions(-) diff --git a/drivers/staging/lustre/lustre/lov/lov_object.c b/

[PATCH 1/2] staging: lustre: llite: use u64 instead of loff_t in lov_object_fiemap()

2016-11-08 Thread Xu, Bobijam
Change loff_t to u64 in lov_object_fiemap() since loff_t is a signed value type. Otherwise there could be an overflow in drivers/staging/lustre/lustre/lov/lov_object.c:1241 lov_object_fiemap() warn: signed overflow undefined. 'fm_start + fm_length < fm_start' Reported-by: Dan Carpenter Signed-of

[PATCH] Staging: lustre: llite: refactor lov_object_fiemap()

2016-11-07 Thread Xu, Bobijam
* Change loff_t to u64 in lov_object_fiemap() since loff_t is a signed value type. * Add fiemap_for_stripe() to get file map extent from each stripe device. Reported-by: Dan Carpenter Signed-off-by: Bobi Jam --- drivers/staging/lustre/lustre/lov/lov_object.c | 458 +