projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a4a104
)
dm: mark split bio as cloned
author
Martin K. Petersen
<martin.petersen@oracle.com>
Tue, 21 Oct 2008 16:45:04 +0000
(17:45 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Tue, 21 Oct 2008 16:45:04 +0000
(17:45 +0100)
When a bio gets split, mark its fragments with the BIO_CLONED flag.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm.c
b/drivers/md/dm.c
index 327de03a5bdfed7f11b0904abb72f3eac65fc92d..829d9fc66453f9e9b5e91761ae285e02a9cda92a 100644
(file)
--- a/
drivers/md/dm.c
+++ b/
drivers/md/dm.c
@@
-669,6
+669,7
@@
static struct bio *split_bvec(struct bio *bio, sector_t sector,
clone->bi_size = to_bytes(len);
clone->bi_io_vec->bv_offset = offset;
clone->bi_io_vec->bv_len = clone->bi_size;
+ clone->bi_flags |= 1 << BIO_CLONED;
return clone;
}