Commit 9dcdc0c
mm/huge_memory: fix folio split stats counting
The "return <error code>" statements for error checks at the beginning of
__folio_split() skip necessary count_vm_event() and count_mthp_stat() at
the end of the function. Fix these by replacing them with "ret = <error
code>; goto out;".
Link: https://lkml.kernel.org/r/20251126210618.1971206-5-ziy@nvidia.com
Signed-off-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
Cc: Balbir Singh <balbirs@nvidia.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Barry Song <baohua@kernel.org>
Cc: Dev Jain <dev.jain@arm.com>
Cc: Lance Yang <lance.yang@linux.dev>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Cc: Nico Pache <npache@redhat.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 2f78910 commit 9dcdc0c
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3942 | 3942 | | |
3943 | 3943 | | |
3944 | 3944 | | |
3945 | | - | |
3946 | | - | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
3947 | 3949 | | |
3948 | | - | |
3949 | | - | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
3950 | 3954 | | |
3951 | 3955 | | |
3952 | 3956 | | |
3953 | 3957 | | |
3954 | | - | |
| 3958 | + | |
3955 | 3959 | | |
3956 | 3960 | | |
3957 | 3961 | | |
| |||
0 commit comments