> -----Original Message----- > From: John Levon <[email protected]> > Sent: 14 сентября 2021 г. 15:48 > To: Dmitry Kozlyuk <[email protected]> > Cc: [email protected]; Anatoly Burakov <[email protected]>; Slava > Ovsiienko <[email protected]> > Subject: Re: [PATCH v3 1/3] eal/linux: make hugetlbfs analysis reusable > > External email: Use caution opening links or attachments > > > On Tue, Sep 14, 2021 at 01:34:54PM +0300, Dmitry Kozlyuk wrote: > > > get_hugepage_dir() searched for a hugetlbfs mount with a given page > > size using handcraft parsing of /proc/mounts and mixing traversal > > logic with selecting the needed entry. Separate code to enumerate > > hugetlbfs mounts to eal_hugepage_mount_walk() taking a callback that > > can inspect already parsed entries. Use mntent(3) API for parsing. > > This allows to reuse enumeration logic in subsequent patches. > > Hi, are you planning to implement my pending change on top of this?
Yes, that's what I have in mind after your patch will be merged.

