LVM2 ./WHATS_NEW lib/metadata/pv_alloc.h lib/m ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz at sourceware.org 2010-03-31 17:22:26
Modified files:
. : WHATS_NEW
lib/metadata : pv_alloc.h pv_manip.c
Log message:
Do not traverse PV segment list twice.
In addition to previous patch, we really do not need to search for segment which was just allocated in split request.
Make pv_split_segment function return newly allocated (split) segment also.
(So after this patch, there is only one user of slow find_peg_by_pe).
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1495&r2=1.1496
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/pv_alloc.h.diff?cvsroot=lvm2&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/pv_manip.c.diff?cvsroot=lvm2&r1=1.23&r2=1.24
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.63 - ================================ + Return newly allocated PV segment after segment split. Optimise PV segments search for the most last segment search case. Remove vg_validate call when parsing cached metadata. Use hash table of LVs to speed up parsing of text metadata with many LVs.
lib/metadata/pv_alloc.h +2 -1
@@ -20,7 +20,8 @@uint32_t area_len, struct lv_segment *seg, uint32_t area_num); -int pv_split_segment (struct physical_volume *pv,uint32_t pe); +int pv_split_segment (struct physical_volume *pv,uint32_t pe, +struct pv_segment **pvseg_allocated);int release_pv_segment (struct pv_segment *peg,uint32_t area_reduction);int check_pv_segments (struct volume_group *vg);void merge_pv_segments (struct pv_segment *peg1,struct pv_segment *peg2);
lib/metadata/pv_manip.c +25 -18
104 lines not on this page · raw message