Because the device mapper already deletes any sys files
created by dm-bootcache, it shouldn't delete them
when cleaning up.
BUG=chromium-os:35377
TEST=ran bootcachetest on stumpy, arm
Change-Id: I73d40a6de17b15827da2dd421a29294e286ebc1a
Signed-off-by: Paul Taysom <taysom@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35836
Reviewed-by: Mandeep Singh Baines <msb@chromium.org>
static void bootcache_dtr(struct dm_target *ti)
{
+ /*
+ * Doesn't have to clean-up the meta files in sysfs
+ * because the device mapper has already done it.
+ */
struct bootcache *cache = (struct bootcache *)ti->private;
DMDEBUG("Destroying bio set");
DMDEBUG("Putting dev");
dm_put_device(ti, cache->dev);
- DMDEBUG("Remove sysfs files");
- bootcache_remove_all_files(cache);
-
DMDEBUG("Destroying config");
kfree(cache);
}