Re: [PATCH v4 2/2] mm/hmm/test: add self tests for HMM

From: Andrew Morton
Date: Tue Nov 12 2019 - 19:08:40 EST


On Tue, 12 Nov 2019 13:51:11 -0800 Ralph Campbell <rcampbell@xxxxxxxxxx> wrote:

> On 11/12/19 7:25 AM, Christoph Hellwig wrote:
> > Shouldn't this go into mm/ instead? It certainly doesn't seem
> > like a library.
>
> I was following the convention for the other vm test kernel modules.
> I see a couple of modules in mm/ but I don't have a personal
> preference for where to place it.
>
> Andrew, do you have a preference?

q:/usr/src/25> ls -l lib/test_*.c|wc
33 297 2051

lib/ is a somewhat strange place, but I'd use that for now.

Presumably one day someone will (pointlessly) move these into
lib/test-modules/.

Then into lib/test-modules/mm/, etc..