]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: promotion optimisation for writes
authorJoe Thornber <ejt@redhat.com>
Thu, 31 Oct 2013 17:55:48 +0000 (13:55 -0400)
committerMike Snitzer <snitzer@redhat.com>
Sat, 9 Nov 2013 23:20:26 +0000 (18:20 -0500)
commit07c5135b2402094cfe6e54e60fb6b35508b965b0
tree480183ffb8ce716748a319df07820f23477e3be7
parent3edd5b034a4080a14be5ac349322bdf5aec51302
dm cache: promotion optimisation for writes

If a write block triggers promotion and covers a whole block we can
avoid a copy.

Introduce dm_{hook,unhook}_bio to simplify saving and restoring bio
fields (bi_private is now used by overwrite).  Switch writethrough
support over to using these helpers too.

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