[PATCH][RFC] g_dir_open->opendir

Sergey Lapin slapinid at gmail.com
Thu Dec 14 12:20:26 PST 2006


Hi!
As I see through the code, near line 660 of hald/linux/blockdev.c, if I 
set break point on a line with g_dir_open, on n770 device and probably 
others, you'll se memory consumption increase by 100K. So I think 
replacing this call with POSIX readdir would be useful.

Please see attached patch. It will benefit at least when you use kernel 
2.6.16 on arm (nokia 770 is an example; you don't have loopX/slaves in 
sysfs).

S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posixdir.diff
Type: text/x-patch
Size: 1637 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20061214/b73bf208/posixdir.bin


More information about the hal mailing list