Re: [dm-devel] [PATCH 3/6] libmultipath: remove code duplication in path counting

2020-08-10 Thread Benjamin Marzinski
On Thu, Aug 06, 2020 at 10:48:12AM +, Martin Wilck wrote: > On Mon, 2020-07-27 at 14:24 -0500, Benjamin Marzinski wrote: > > pathcountgr() is never used except by pathcount(), and neither is the > > special case for PATH_WILD. Simplify this and make one function that > > is > > used by both

Re: [dm-devel] [PATCH 3/6] libmultipath: remove code duplication in path counting

2020-08-06 Thread Martin Wilck
On Mon, 2020-07-27 at 14:24 -0500, Benjamin Marzinski wrote: > pathcountgr() is never used except by pathcount(), and neither is the > special case for PATH_WILD. Simplify this and make one function that > is > used by both pathcount() and count_active_paths(). This will be used > again in a

[dm-devel] [PATCH 3/6] libmultipath: remove code duplication in path counting

2020-07-27 Thread Benjamin Marzinski
pathcountgr() is never used except by pathcount(), and neither is the special case for PATH_WILD. Simplify this and make one function that is used by both pathcount() and count_active_paths(). This will be used again in a future patch. Also use count_active_paths() in mpath_persist.