Re: [LTP] [PATCH v7 3/4] Hugetlb: Migrating libhugetlbfs chunk-overcommit

Cyril Hrubis
2022-11-04T13:18:35Z

Hi!
> > #define HUGEFILE MNTPOINT "hugefile"
> >
> > ...
> > huge_fd = tst_creat_unlinked(HUGEFILE);
> > ...
> >
> This function creat a file with random name, so that one test
> can call this function multiple times to creat multple files
> whenever required. So it will just take the path inside which it will creat
> all these files. To keep hugetlb test file with ditinguisable name, the path
> is sufficient, no need to take hugefile as argument.
>
> So file is: hugetlbfs/ltp_xxxxxx_<tid>

Sorry, I got somehow confused in the morning, of course the code is
correct.

--
Cyril Hrubis
chrubis@suse.cz