Whamcloud - gitweb
LU-11423 osc: Do not walk full extent list
[fs/lustre-release.git] / lustre / osc / osc_cache.c
index b9112ef..7524899 100644 (file)
@@ -699,7 +699,7 @@ restart:
                pgoff_t ext_chk_end   = ext->oe_end   >> ppc_bits;
 
                LASSERT(sanity_check_nolock(ext) == 0);
-               if (chunk > ext_chk_end + 1)
+               if (chunk > ext_chk_end + 1 || chunk < ext_chk_start)
                        break;
 
                /* if covering by different locks, no chance to match */