From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20170509190924.9087-3-yauheni.kaliuta@redhat.com> References: <20170509190924.9087-1-yauheni.kaliuta@redhat.com> <20170509190924.9087-3-yauheni.kaliuta@redhat.com> Date: Thu, 1 Jun 2017 20:23:56 -0700 Message-ID: Subject: Re: [PATCHv2 2/4] depmod: rewrite depmod modules search with scratchbuf From: Lucas De Marchi To: Yauheni Kaliuta Cc: linux-modules Content-Type: text/plain; charset="UTF-8" List-ID: On Tue, May 9, 2017 at 12:09 PM, Yauheni Kaliuta wrote: > The recursive search code used used pretty big, PATH_MAX, > automatic storage buffer for the module directory scanning. Some > time ago there was scratchbuf implemented, which dynamically > reallocates its buffer on demand. The patch takes it in use for > the scanning code also. The initial size is hardcoded to 256 > bytes which sounds good enough for most usecases so there should > be not many reallocations. > > Signed-off-by: Yauheni Kaliuta > --- Applied, thanks. Lucas De Marchi