# Re: \[PATCH 2/2\] ext4: correct the cache\_nr in tracepoint ext4\_es\_shrink\_exit

- From: Theodore Ts'o \<tytso@mit.edu\>
- Date: 2021-06-17 20:17:20 
- List: linux-ext4
- Page: https://ratatoskr.run/linux-ext4/2021/06/13436010
- Thread: https://ratatoskr.run/linux-ext4/2021/05/13435888/t.md

```text
On Sat, May 22, 2021 at 06:30:45PM +0800, Zhang Yi wrote:
> The cache_cnt parameter of tracepoint ext4_es_shrink_exit means the
> remaining cache count after shrink, but now it is the cache count before
> shrink, fix it by read sbi->s_extent_cache_cnt again.
> 
> Fixes: 1ab6c4997e04 ("fs: convert fs shrinkers to new scan/count API")
> Cc: <redacted> # 3.12+
> Signed-off-by: Zhang Yi <yi.zhang@huawei.com>

Thanks, applied.

				- Ted
```
