Whamcloud - gitweb
LU-17013 lov: fill FIEMAP_EXTENT_LAST flag
[fs/lustre-release.git] / lustre / lov / lov_object.c
index 82673f3..1aeb6a8 100644 (file)
@@ -2188,7 +2188,8 @@ finish:
                cur_ext = 0;
 
        /* done all the processing */
-       if (entry > end_entry)
+       if (entry > end_entry ||
+           (fs.fs_enough && fs.fs_finish_stripe && entry == end_entry))
                fiemap->fm_extents[cur_ext].fe_flags |= FIEMAP_EXTENT_LAST;
 
        /* Indicate that we are returning device offsets unless file just has