[PATCH] dm: extract device limit setting