summaryrefslogtreecommitdiff
path: root/mm/shuffle.h
diff options
context:
space:
mode:
authorTong Tiangen <tongtiangen@huawei.com>2023-01-29 07:06:51 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-02-10 03:51:40 +0300
commit93419139fa14124c1c507d804f2b28866ebee28d (patch)
tree80f65c396b7df0f75ab91c37f3084799d4a9f764 /mm/shuffle.h
parent8f17febb34ceb464e3ff99e9436d0ae3f47b4862 (diff)
downloadlinux-93419139fa14124c1c507d804f2b28866ebee28d.tar.xz
memory tier: release the new_memtier in find_create_memory_tier()
In find_create_memory_tier(), if failed to register device, then we should release new_memtier from the tier list and put device instead of memtier. Link: https://lkml.kernel.org/r/20230129040651.1329208-1-tongtiangen@huawei.com Fixes: 9832fb87834e ("mm/demotion: expose memory tier details via sysfs") Signed-off-by: Tong Tiangen <tongtiangen@huawei.com> Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Cc: Hanjun Guo <guohanjun@huawei.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Guohanjun <guohanjun@huawei.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/shuffle.h')
0 files changed, 0 insertions, 0 deletions