Mike Snitzer 1f3db25d8b dm thin metadata: remove incorrect close_device on creation error paths
The __open_device() error paths in __create_thin() and __create_snap()
incorrectly call __close_device() even if td was not initialized by
__open_device().  Remove this.

Also document __open_device() return values, remove a redundant
td->changed = 1 in __create_thin(), and insert an additional
safeguard against creating an already-existing device.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2012-03-07 19:09:41 +00:00
..
2012-02-06 14:37:52 -05:00
2012-01-26 18:36:48 +00:00
2012-02-02 14:00:43 +05:30
2012-02-09 15:41:29 -05:00
2012-02-09 13:51:13 -08:00
2012-02-01 19:35:21 +01:00
2012-02-27 07:54:27 -08:00
2012-02-01 15:26:00 -05:00
2012-01-13 10:12:23 -08:00
2012-03-02 15:21:15 -08:00
2012-01-02 13:04:55 +01:00
2012-01-11 23:58:47 -05:00