]> git.karo-electronics.de Git - linux-beck.git/commit
dm cache: avoid calls to prealloc_free_structs() if possible
authorMike Snitzer <snitzer@redhat.com>
Fri, 17 Jul 2015 01:48:55 +0000 (21:48 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 17 Jul 2015 02:32:08 +0000 (22:32 -0400)
commit665022d72f9b5762f21b5ea02fa0503d04802849
treed7760993f35eac82be5f165d385b3f05fb1f4552
parente782eff591bca2d96bac30ab5d1cfa4ccd3b0f86
dm cache: avoid calls to prealloc_free_structs() if possible

If no work was performed then prealloc_data_structs() wasn't ever called
so there isn't any need to call prealloc_free_structs().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c