[lvm-devel] [LVM2 PATCH] (5/5) Remove ix_offset

Jun'ichi Nomura j-nomura at ce.jp.nec.com
Mon Jan 8 17:12:08 UTC 2007


In _find_parallel_space(), ix_offset is used as a separator of
the areas[] array:
  - 0--ix_offset : used for contiguous/cling allocation
  - ix_offset--areas_size : used for other allocation

Since the both uses are exclusive, there is no need to use ix_offset.
ix can be used to count the number of areas found suitable for
the allocation.

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05-remove-ix_offset.patch
Type: text/x-patch
Size: 3520 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20070108/fceb7a35/attachment.bin>


More information about the lvm-devel mailing list