summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorWarren Xiong <warren.xiong@ugreen.com>2026-07-30 09:58:09 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-08-13 15:42:06 -0700
commit825cef942cd58ddf6d26d1f45a9d70d28ea63d55 (patch)
treef594c60f3c751c32fe86b0cafa6e3330d2f49417 /scripts/objdiff
parentaa27e55f24402ab7de5dc2593b54145f9b6dc3fe (diff)
downloadlinux-825cef942cd58ddf6d26d1f45a9d70d28ea63d55.tar.gz
linux-825cef942cd58ddf6d26d1f45a9d70d28ea63d55.zip
tools/mm: prevent page_owner_sort from truncating input
page_owner_sort opens the output file with "w" before reading the input. If both paths refer to the same file, this truncates the input and the tool silently processes zero records before returning success. Delay opening the output file until all input records have been loaded into memory. This allows the tool to sort a file in place without truncating data before it has been consumed. Link: https://lore.kernel.org/20260730015809.3819606-1-warren.xiong@ugreen.com Signed-off-by: Warren Xiong <warren.xiong@ugreen.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Vishal Moola <vishal.moola@gmail.com> Cc: Ye Liu <ye.liu@linux.dev> Cc: Zhen Ni <zhen.ni@easystack.cn> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions