[LTP] [PATCH v7 3/4] Hugetlb: Migrating libhugetlbfs chunk-overcommit
Cyril Hrubis
chrubis@suse.cz
Fri Nov 4 14:19:53 CET 2022
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
More information about the ltp
mailing list