From: Wei Yang <richard.weiyang@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Wei Yang <richard.weiyang@gmail.com>,
Vineet Agarwal <agarwal.vineet2006@gmail.com>,
david@kernel.org, ljs@kernel.org, linux-mm@kvack.org,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests/mm: check file initialization writes in split_huge_page_test
Date: Wed, 20 May 2026 01:49:23 +0000 [thread overview]
Message-ID: <20260520014923.zowt3fimptgzgju2@master> (raw)
In-Reply-To: <20260519121813.4b188b21f7280d6e1d9a55e1@linux-foundation.org>
On Tue, May 19, 2026 at 12:18:13PM -0700, Andrew Morton wrote:
>On Tue, 19 May 2026 02:51:41 +0000 Wei Yang <richard.weiyang@gmail.com> wrote:
>
>> >Not understanding - cab you please describe more completely?
>> >
>>
>> I mean do this below.
>>
>> diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c
>> index 460fa1f606fd..f30402ece608 100644
>> --- a/tools/testing/selftests/mm/split_huge_page_test.c
>> +++ b/tools/testing/selftests/mm/split_huge_page_test.c
>> @@ -469,7 +469,7 @@ static int create_pagecache_thp_and_fd(const char *testfile, size_t fd_size,
>> }
>> if (write(*fd, "3", 1) != 1) {
>> ksft_perror("write to drop_caches");
>> - goto err_out_unlink;
>> + goto err_out_close;
>> }
>> close(*fd);
>>
>> On error writing this fd, /proc/sys/vm/drop_caches, we forget to close it.
>
>Oh, OK, that's a buglet. Please send a formal fix sometime?
Sure, I am glad to.
--
Wei Yang
Help you, Help me
prev parent reply other threads:[~2026-05-20 1:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 7:49 [PATCH] selftests/mm: check file initialization writes in split_huge_page_test Vineet Agarwal
2026-05-12 7:57 ` David Hildenbrand (Arm)
2026-05-15 9:22 ` Wei Yang
2026-05-18 23:35 ` Andrew Morton
2026-05-19 2:51 ` Wei Yang
2026-05-19 19:18 ` Andrew Morton
2026-05-20 1:49 ` Wei Yang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260520014923.zowt3fimptgzgju2@master \
--to=richard.weiyang@gmail.com \
--cc=agarwal.vineet2006@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox