zloop: fix write pointer calculation in zloop_forget_cache#741
zloop: fix write pointer calculation in zloop_forget_cache#741blktests-ci[bot] wants to merge 7 commits intolinus-master_basefrom
Conversation
|
Upstream branch: d60bc14 |
|
Upstream branch: d60bc14 |
f14e180 to
3fc3f57
Compare
6b4d829 to
ceec5ed
Compare
|
Upstream branch: b4e0758 |
3fc3f57 to
2648c80
Compare
ceec5ed to
3b54e52
Compare
|
Upstream branch: 6596a02 |
2648c80 to
2ed5e8a
Compare
3b54e52 to
6a0b974
Compare
|
Upstream branch: 507bd4b |
2ed5e8a to
c6d6d79
Compare
6a0b974 to
59ca59b
Compare
|
Upstream branch: dd6c438 |
c6d6d79 to
dd615f1
Compare
59ca59b to
94f0438
Compare
94f0438 to
857ada9
Compare
The write pointer is absolute and in sector units, so we need to
convert it to a relative byte address first.
Fixes: c505448748f7 ("zloop: forget write cache on force removal")
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
While vfs_truncate does various extra checks that we don't really need, it is always better to use a VFS helper rather than open coding the logic. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Damien Le Moal <[email protected]>
|
Upstream branch: dd6c438 |
Use the IS_ALIGNED helper and avoid extra conversions, and tell the user what the unaligned size is. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Damien Le Moal <[email protected]>
Reduce the dmesg spam for tests that involve device deletion. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Damien Le Moal <[email protected]>
Move a few chunks of duplicated code into helpers. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Damien Le Moal <[email protected]>
All of zloop runs in user context, so drop the irq-safe locking. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Damien Le Moal <[email protected]>
dd615f1 to
2c43412
Compare
857ada9 to
482ce5b
Compare
|
Upstream branch: dca922e Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/project/linux-block/list/?series=1081024 conflict: |
482ce5b to
5a9f7c7
Compare
Pull request for series with
subject: zloop: fix write pointer calculation in zloop_forget_cache
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1081024