]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Incr: reduce the number of times we load data from sysfs.
authorNeilBrown <neilb@suse.de>
Thu, 25 Nov 2010 07:58:44 +0000 (18:58 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 25 Nov 2010 07:58:44 +0000 (18:58 +1100)
commit2bf740b39403a6a8ae5a1c5f94554959424b6ebc
tree98f4ac623daf26daa4f4b23388bcbeaf563250a7
parent5739e0d007a3eea80f5108d73d444751dbbde1ef
Incr: reduce the number of times we load data from sysfs.

Rather than calling sysfs_read whenever we want data from sysfs, call
it once at the start will all the requests of interest, then just use
that,

Make sure we free it properly too.

Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c