From 05da6e66437d32eb686cb787c1628b7faf68523c Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 13 Jan 2010 23:28:18 +0100 Subject: [PATCH] b=21800 fix spurious message from shrink_slab reporing negative nr i=johann i=andrew --- lustre/llite/llite_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 2338186..a87fdaa 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -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 */ -- 1.8.3.1