diff options
author | 2021-01-26 15:33:08 +0100 | |
---|---|---|
committer | 2021-01-26 08:50:01 -0700 | |
commit | 46bbf653a67a36989a55dbb894c8b94c5ecb2858 (patch) | |
tree | b6951d795c88d5e0a82c265db6005e2609b1feb7 /fs/jbd2/commit.c | |
parent | bcache: use bio_set_dev to assign ->bi_bdev (diff) | |
download | linux-dev-46bbf653a67a36989a55dbb894c8b94c5ecb2858.tar.xz linux-dev-46bbf653a67a36989a55dbb894c8b94c5ecb2858.zip |
block: inherit BIO_REMAPPED when cloning bios
Cloned bios are can be used to on the same device, in which case we need
to inherit the BIO_REMAPPED flag to avoid a double partition remap. When
the cloned bios are used on another device, bio_set_dev will clear the flag.
Fixes: 309dca309fc3 ("block: store a block_device pointer in struct bio")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions