]> git.baikalelectronics.ru Git - kernel.git/commit
block: Add bio_clone_fast()
authorKent Overstreet <kmo@daterainc.com>
Sun, 24 Nov 2013 02:19:27 +0000 (18:19 -0800)
committerKent Overstreet <kmo@daterainc.com>
Sun, 24 Nov 2013 06:33:54 +0000 (22:33 -0800)
commitf3172fde127e05b9f0fa22f3e3d6aecb304552a8
treedbb8c78a922d47652c08d9f5e46d77708ac95543
parent1ed7b5beba776c5cba1c3e2db118c3c205bf644b
block: Add bio_clone_fast()

bio_clone() just got more expensive - however, most users of bio_clone()
don't actually need to modify the biovec. If they aren't modifying the
biovec, and they can guarantee that the original bio isn't freed before
the clone (also true in most cases), we can just point the clone at the
original bio's biovec.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/request.c
fs/bio.c
include/linux/bio.h