5eb129647d
This makes it easier to unit test the individual functions and also easier to follow the logic. These helpers will also be used in the upcoming Write Zeroes function. Also cleans up the variable names to be consistent with the rest of the code. Change-Id: I69847b6a052fb7baff058ed8e5b79904ddf2ec6d Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/377259 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>