]> sourceware.org Git - lvm2.git/commit
dev-cache: skip double stat() call on each _insert
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 25 Nov 2011 09:01:37 +0000 (10:01 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 12 Dec 2013 12:42:28 +0000 (13:42 +0100)
commit6c0e44d5a2e82aa160d48e83992e7ca342bc4bdf
tree0e267f7eb534b7405596836bbe949adb00898af8
parent7c5feaed3be5c26f5782e4e891ba99862f1e968f
dev-cache: skip double stat() call on each _insert

When the device is inserted in dev_name_confirmed() stat() is
called twice as _insert() has it's own stat() call.

Extend _insert() parameter with struct stat* - which could be used
if it has been just obtained.  When NULL is passed code is
doing its own stat() call as before.
WHATS_NEW
lib/device/dev-cache.c
This page took 0.038516 seconds and 5 git commands to generate.