linux515: Update bcachefs patchset

This commit is contained in:
Tk-Glitch
2022-06-18 21:25:56 +02:00
parent 4955a26894
commit 63b0b48969
2 changed files with 9 additions and 7 deletions

View File

@@ -626,7 +626,7 @@ case $_basever in
'c8f7c50d9b1418ba22b5ca735c47111a162be416109714d26a674162e5b2cb97'
'63a2ddf7ca9d3922f4eac3ac66bc37ffb10ad8b18b3e596832d3faa66b93dfa6'
'00b452910c68fba6dcebbf6c064beff565b2c60ac07a9c1a3375b8bf0354911f'
'68659b54bd0c0539c22869feea8017faf947af6883d75c00089f2bfd9f265f8e'
'980be21d8b6a014752ea094fd996da3c8a25f5c38020e0d704b7f9d3181a5d9e'
'9fad4a40449e09522899955762c8928ae17f4cdaa16e01239fd12592e9d58177'
'978b197efa56781a1d5651a3649c3d8b926d55748b4b9063788dfe1a861fc1bc'
'930996cdd9b63e3456cc49da4015631717c1c2ec41f879b25a9100e95e0b38fb'

View File

@@ -21,7 +21,7 @@ index a6fb6a0b4295..3c9cc0000168 100644
/**
* bio_truncate - truncate the bio to small size of @new_size
@@ -1284,15 +1284,27 @@ EXPORT_SYMBOL(bio_advance);
@@ -1284,17 +1284,28 @@ EXPORT_SYMBOL(bio_advance);
void bio_copy_data_iter(struct bio *dst, struct bvec_iter *dst_iter,
struct bio *src, struct bvec_iter *src_iter)
{
@@ -33,7 +33,8 @@ index a6fb6a0b4295..3c9cc0000168 100644
- struct bio_vec src_bv = bio_iter_iovec(src, *src_iter);
- struct bio_vec dst_bv = bio_iter_iovec(dst, *dst_iter);
- unsigned int bytes = min(src_bv.bv_len, dst_bv.bv_len);
- void *src_buf;
- void *src_buf = bvec_kmap_local(&src_bv);
- void *dst_buf = bvec_kmap_local(&dst_bv);
+ src_bv = bio_iter_iovec(src, *src_iter);
+ dst_bv = bio_iter_iovec(dst, *dst_iter);
+
@@ -49,8 +50,9 @@ index a6fb6a0b4295..3c9cc0000168 100644
+ kunmap_atomic(dst_p);
+ kunmap_atomic(src_p);
- src_buf = bvec_kmap_local(&src_bv);
- memcpy_to_bvec(&dst_bv, src_buf);
- memcpy(dst_buf, src_buf, bytes);
- kunmap_local(dst_buf);
- kunmap_local(src_buf);
+ flush_dcache_page(dst_bv.bv_page);