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/
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
* 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 +