Whamcloud - gitweb
b=21800 fix spurious message from shrink_slab reporing negative nr
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Jan 2010 22:28:18 +0000 (23:28 +0100)
committerJohann Lombardi <johann@sun.com>
Wed, 13 Jan 2010 22:28:18 +0000 (23:28 +0100)
i=johann
i=andrew

lustre/llite/llite_lib.c

index 2338186..a87fdaa 100644 (file)
@@ -1305,7 +1305,7 @@ int ll_shrink_cache(int nr_to_scan, SHRINKER_MASK_T gfp_mask)
         struct ll_sb_info *sbi;
         int count = 0;
 
-        if (gfp_mask & __GFP_FS)
+        if ((nr_to_scan != 0) && (gfp_mask & __GFP_FS))
                 return -1;
 
         /* don't race with umount */