]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
uml: fix previous request size limit fix
authorJeff Dike <jdike@addtoit.com>
Wed, 22 Aug 2007 21:01:53 +0000 (14:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 31 Aug 2007 06:01:01 +0000 (23:01 -0700)
commit6f157f740ceb977982d36abbf2f54ffbc3964190
tree52ac71c113b09716b7e82824d3aca3a42475188a
parent7405863e9166369e3ee87aa8f765566b693e2663
uml: fix previous request size limit fix

The previous patch which limited the number of sectors in a single request
to a COWed device was correct in concept, but the limit was implemented in
the wrong place.

By putting it in ubd_add, it covered the cases where the COWing was
specified on the command line.  However, when the command line only has the
COW file specified, the fact that it's a COW file isn't known until it's
opened, so the limit is missed in these cases.

This patch moves the sector limit from ubd_add to ubd_open_dev.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/um/drivers/ubd_kern.c