Re: [PATCH v2] selftests/mm: use global variable to not optimize mmap read variable

2024-06-06 Thread Zi Yan
On 6 Jun 2024, at 8:44, Pankaj Raghav (Samsung) wrote: > From: Pankaj Raghav > > create_pagecache_thp_and_fd() in split_huge_page_test.c used the > variable dummy to perform mmap read. > > However, this test was skipped even on XFS which has large folio > support. The issue was compiler (gcc 13.2

[PATCH v2] selftests/mm: use global variable to not optimize mmap read variable

2024-06-06 Thread Pankaj Raghav (Samsung)
From: Pankaj Raghav create_pagecache_thp_and_fd() in split_huge_page_test.c used the variable dummy to perform mmap read. However, this test was skipped even on XFS which has large folio support. The issue was compiler (gcc 13.2.0) was optimizing out the dummy variable, therefore, not creating h