]> git.baikalelectronics.ru Git - kernel.git/commit
dm array: if resizing the array is a noop set the new root to the old one
authorJoe Thornber <ejt@redhat.com>
Mon, 24 Nov 2014 14:08:57 +0000 (14:08 +0000)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Dec 2014 16:30:07 +0000 (11:30 -0500)
commitaba53d45c1d684860cafefdc49f91ca3eaa6509a
treeff70d07dbafed0b3da8310eb9aff894ef8d4ed18
parent20a97b9166b35d6b5be60508a411abf06705fbb8
dm array: if resizing the array is a noop set the new root to the old one

This could've been quite bad (to return success but not update the new
root to point at the old) but in practice the only known consumer of the
dm array code is the DM cache target.  And the DM cache target passes in
the same old root to array_resize() anyway.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-array.c