Repository navigation
Commit e566d48
mbcache: fix shrinker function return value
The shrinker function is supposed to return the number of cache
entries after shrinking, not before shrinking. Fix that.
Based on a patch from Wang Sheng-Hui <crosslonelyover@gmail.com>.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 2aec7c5 commit e566d48
1 file changed
Lines changed: 10 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | 183 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 184 | + | |
195 | 185 | | |
196 | 186 | | |
197 | 187 | | |
198 | 188 | | |
199 | 189 | | |
200 | 190 | | |
201 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
202 | 197 | | |
203 | | - | |
204 | | - | |
205 | | - | |
| 198 | + | |
| 199 | + | |
206 | 200 | | |
207 | | - | |
208 | 201 | | |
209 | 202 | | |
210 | 203 | | |
| |||
0 commit comments