Whamcloud - gitweb
LU-2482 layout: introduce new layout for released files
[fs/lustre-release.git] / lustre / lov / lov_obd.c
index 9c75cb3..5843bca 100644 (file)
@@ -2276,7 +2276,7 @@ static int lov_fiemap(struct lov_obd *lov, __u32 keylen, void *key,
         int cur_stripe = 0, cur_stripe_wrap = 0, stripe_count;
         unsigned int buffer_size = FIEMAP_BUFFER_SIZE;
 
-        if (lsm == NULL)
+       if (!lsm_has_objects(lsm))
                 GOTO(out, rc = 0);
 
         if (fiemap_count_to_size(fm_key->fiemap.fm_extent_count) < buffer_size)